Skip to content

Commit 673e498

Browse files
authored
Merge pull request #63 from mxsteini/master
add array to pass options to expressions
2 parents 8b44358 + 9372f57 commit 673e498

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ __root__: Root folder path for include. Default `./`
3535

3636
__encoding__: Default `utf-8`
3737

38+
__posthtmlExpressionsOptions__: Array to pass options posthtml-expression
39+
3840
### Component options
3941
__locals__: Object containing any local variables that you want to be accessible inside the include component
4042

lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ module.exports = (options = {}) => {
2020
let content;
2121
let subtree;
2222
let source;
23-
const posthtmlExpressionsOptions = {
24-
locals: false
25-
}
23+
const posthtmlExpressionsOptions = options.posthtmlExpressionsOptions || {locals: false};
2624

2725
if (options.delimiters) {
2826
posthtmlExpressionsOptions.delimiters = options.delimiters;

0 commit comments

Comments
 (0)