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
This would allow something like this:
var env = process.env.NODE_ENV var compressedByDefault = env === 'production' var compressedFormat = dust.optimizers.format var uncompressedFormat = function (ctx, node) { return node } dust.optimizers.format = function (ctx, node) { var compressed = ctx.compressed === undefined ? compressedByDefault : ctx.compressed return compressed ? compressedFormat.apply(this, arguments) : uncompressedFormat.apply(this, arguments) }
The text was updated successfully, but these errors were encountered:
similar to : #238 (comment)
But this ticket addresses different modes as well
Sorry, something went wrong.
Closing based on resolution in #238 via #511
No branches or pull requests
This would allow something like this:
The text was updated successfully, but these errors were encountered: