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
require("jinjs").registerExtension(".tpl");
var main_template = require("./test");
var context = { news : [{title: "test one"}, {title: "test two"}]};
console.log(main_template.render(context));
Then, node test.js gives me the following error:
var _fref = new $$.s || [], _prev_loop = $$.loop, _prev_key = $$['i'], _prev_value = null, k = null, v = null, i = 0, l = 0, x = null, last_v = null, last_k = null;
^
TypeError: $$.s is not a constructor
Changing to foo and the error goes away
If I replace news with foo or bnews, then the error doesn't occur anymore.
However, the error still occurs for words like newsarticles.
The text was updated successfully, but these errors were encountered:
Following situation:
test.tpl
test.js
Then,
node test.js
gives me the following error:Changing to
foo
and the error goes awayIf I replace
news
withfoo
orbnews
, then the error doesn't occur anymore.However, the error still occurs for words like
newsarticles
.The text was updated successfully, but these errors were encountered: