Skip to content

Commit 8f33cd3

Browse files
Dan Whitebmuenzenmeyer
authored andcommitted
Update readme
1 parent 926c176 commit 8f33cd3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/patternengine-node-nunjucks

packages/patternengine-node-nunjucks/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ To install the Nunjucks engine in your edition, `npm install patternengine-node-
66

77
Level of Support is more or less full. Partial calls and lineage hunting are supported. Nunjucks does not support the mustache-specific syntax extensions, style modifiers and pattern parameters, because their use cases are addressed by the core Nunjucks feature set.
88

9-
## Extending the Nunjucks
9+
## Extending the Nunjucks instance
1010

11-
To add custom filters or make customizations the nunjucks instance, create a file named `patternlab-nunjucks-config.js` in the root fo your Pattern Lab project. It should export a function that takes two paramerters. The first parameter being the nunjucks instance and the second the nunjucks instance environment.
11+
To add custom filters or make customizations to the nunjucks instance, create a file named `patternlab-nunjucks-config.js` in the root of your Pattern Lab project. `patternlab-nunjucks-config.js` should export a function that takes two parameters. The first parameter is the nunjucks instance; the second is the nunjucks instance's environment.
1212

1313
```
1414
module.exports = function (nunjucks, env) {
1515
[YOUR CUSTOM CODE HERE]
1616
};
1717
```
1818

19-
EXAMPLE: patternlab-nunjucks-config.js file that uses lodash and adds three custom filters.
19+
Example: `patternlab-nunjucks-config.js` file that uses lodash and adds three custom filters.
2020
```
2121
var _shuffle = require('lodash/shuffle'),
2222
_take = require('lodash/take');

0 commit comments

Comments
 (0)