You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var SomeTransform =require('./some-path/transform');
@@ -22,15 +28,15 @@ module.exports = {
22
28
};
23
29
```
24
30
25
-
####Options for registering a `htmlbars-ast-plugin`
31
+
### Options for registering a `htmlbars-ast-plugin`
26
32
27
33
*`name` - String. The name of the AST transform for debugging purposes.
28
34
*`plugin` - A function of type [`ASTPluginBuilder`](https://github.com/glimmerjs/glimmer-vm/blob/master/packages/%40glimmer/syntax/lib/parser/tokenizer-event-handlers.ts#L329-L341).
29
35
*`dependencyInvalidation` - Boolean. A flag that indicates the AST Plugin may, on a per-template basis, depend on other files that affect its output.
30
36
*`cacheKey` - function that returns any JSON-compatible value - The value returned is used to invalidate the persistent cache across restarts, usually in the case of a dependency or configuration change.
31
37
*`baseDir` - `() => string`. A function that returns the directory on disk of the npm module for the plugin. If provided, a basic cache invalidation is performed if any of the dependencies change (e.g. due to a npm install/upgrade).
32
38
33
-
####Implementing Dependency Invalidation in an AST Plugin
39
+
### Implementing Dependency Invalidation in an AST Plugin
34
40
35
41
Plugins that set the `dependencyInvalidation` option to `true` can provide function for the `plugin` of type `ASTDependencyPlugin` as given below.
###Precompile HTMLBars template strings within other addons
80
+
## Precompile HTMLBars template strings within other addons
75
81
76
82
```javascript
77
83
module.exports= {
@@ -93,7 +99,7 @@ module.exports = {
93
99
};
94
100
```
95
101
96
-
###Tagged Template Usage / Migrating from `htmlbars-inline-precompile`
102
+
## Tagged Template Usage / Migrating from `htmlbars-inline-precompile`
97
103
98
104
Starting with version 4.0, this addon now includes the testing helper from [ember-cli-htmlbars-inline-precompile](https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile)
0 commit comments