Skip to content

Commit

Permalink
Merge pull request #9 from atolye15/bugfix/regression-twigjs-update
Browse files Browse the repository at this point in the history
Regression twigjs update
  • Loading branch information
hsnaydd authored Sep 11, 2020
2 parents 901e240 + 58f8fe1 commit 2e6113e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions extend/kssIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ module.exports = function(Twig) {
});

iconNames.forEach(item => {
var innerContext = {...context};
var innerContext = Twig.ChildContext(context);
innerContext.icon = {};
innerContext.icon.name = item;

output.push(this.parse(token.output, innerContext));
output.push(Twig.parse.apply(this, [token.output, innerContext]));
Twig.merge(context, innerContext, true);
});

return {
chain: chain,
output: output.join(''),
output: Twig.output.apply(this, [output]),
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atolye15/kss-node-twig-builder",
"version": "1.3.0",
"version": "1.3.1",
"description": "The Twig.js builder for kss-node that used by Atölye15.",
"main": "builder.js",
"scripts": {
Expand Down

0 comments on commit 2e6113e

Please sign in to comment.