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
Hi,
Thanks for using Dust!
> dust.compile("Hello {world}") '(function(dust){function body_0(chk,ctx){return chk.w("Hello ").f(ctx.get(["world"], false),ctx,"h");}body_0.__dustBody=!0;return body_0}(dust));' > dust.config.amd = true; true > dust.compile("Hello {world}") 'define(["dust.core"],function(dust){function body_0(chk,ctx){return chk.w("Hello ").f(ctx.get(["world"], false),ctx,"h");}body_0.__dustBody=!0;return body_0});' > dust.config.amd = false; dust.config.cjs = true; true > dust.compile("Hello {world}") 'module.exports=function(dust){var tmpl=(function(dust){function body_0(chk,ctx){return chk.w("Hello ").f(ctx.get(["world"], false),ctx,"h");}body_0.__dustBody=!0;return body_0}(dust));var f=function load(ctx, cb) {\n var fn = cb ? \'render\' : \'stream\';\n return dust[fn](tmpl, ctx, cb);\n };f.template=tmpl;return f}'
You may find it useful to delegate to Dust's native compiler to reduce your work.
(AMD support: Dust >= 2.6) (CJS support: Dust >= 2.7)
The text was updated successfully, but these errors were encountered:
Hi, @sethkinast! I really appreciate your letting me know. I'll integrate with the new API very soon.
Sorry, something went wrong.
No branches or pull requests
Hi,
Thanks for using Dust!
You may find it useful to delegate to Dust's native compiler to reduce your work.
(AMD support: Dust >= 2.6)
(CJS support: Dust >= 2.7)
The text was updated successfully, but these errors were encountered: