We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the documentation, one may read :
Parameters accept interpolated string literals as values: {#snippet id="{name}_id"/}
However, here is a test case that shows that it currently does not work :
Template Test: {#helper foo="{name}_2"/}
Test: {#helper foo="{name}_2"/}
Context { "name": "tester", "helper": function(chunk, context, bodies, params) { return chunk.write(params.foo); } }
{ "name": "tester", "helper": function(chunk, context, bodies, params) { return chunk.write(params.foo); } }
Expected Output Test: tester_2
Test: tester_2
Effective Output Test: function body_1(chk,ctx){return chk.reference(ctx.get("name"),ctx,"h").write("_2");}
Test: function body_1(chk,ctx){return chk.reference(ctx.get("name"),ctx,"h").write("_2");}
The text was updated successfully, but these errors were encountered:
Ok, i've found the solution by reading the Lindekin repository gists.
Here is a gist for future reference : https://gist.github.com/2016071
Sorry, something went wrong.
We now have our fork on github
https://github.com/linkedin/dustjs
Thanks ! dustjs is awesome but the main repo seems abandonned.
We want to accept pull requests and maintain until the creator responds.
Yes, it is one of the elegant ones I have used.
No branches or pull requests
In the documentation, one may read :
Parameters accept interpolated string literals as values: {#snippet id="{name}_id"/}
However, here is a test case that shows that it currently does not work :
Template
Test: {#helper foo="{name}_2"/}
Context
{
"name": "tester",
"helper": function(chunk, context, bodies, params) {
return chunk.write(params.foo);
}
}
Expected Output
Test: tester_2
Effective Output
Test: function body_1(chk,ctx){return chk.reference(ctx.get("name"),ctx,"h").write("_2");}
The text was updated successfully, but these errors were encountered: