dustjs-linkedin
Advanced tools
Changelog
v2.6.3 (2016/07/26 18:03 +00:00)
DEBUG
loglevel, log the full stack trace on errors (@r1b)Changelog
v2.7.2 (2015/06/08 20:41 +00:00)
Closes #674 (@sethkinast)
Previously returning a primitive would crash rendering with no way to recover. You can still return a Chunk and do more complex work if you need to.
Helpers act like references or sections depending on if they have a body. When they have no body, they act like a reference and look in params.filters
for filters to use. When they have a body, they act like a section. You can return thenables and streams normally.
{@return value="<Hello>" filters="|s" /} {@return value="<Hello>"}{.} World{/return}
Closes #645 (@sethkinast)
Closes #663 (@sethkinast)
Closes #649 Closes #602 Closes #642 (@sethkinast)
Closes #659 (@sethkinast)
Changelog
v2.7.1 (2015/04/30 20:32 +00:00)
cb(null, compiledTemplate)
signature to dust.onLoad
Calling the onLoad
callback with a compiled template function will use this template to satisfy the load request. The template is not automatically registered under any name when passed to the callback, so the onLoad
function should handle registration as it needs.
dust.cache
behavior has been changed slightly. Before, setting it to false would blow away the entire cache on every render. Now, setting it to false just prevents new templates from being added and cached templates from being used, but if it's set to true again previously-cached templates will be ready to use. (@sethkinast)
Changelog
v2.7.0 (2015/04/17 23:23 +00:00)
dust.render
and dust.stream
now accept a compiled template function in addition to a template name.dust.compile
no longer requires a template name, and will compile an anonymous template without one (so --name
is no longer required for dustc either)dust.load
is removed from the public APIdust.renderSource
is moved to the compiler, so it's only included in dust-full now (Fixes #412)dust.compileFn
is moved to the compiler, so it's only included in dust-full nowdust.isTemplateFn
dust.config.cache = true
, set to false
to disable caching and load templates again every time (Fixes #451)dust.config.cjs = false
, set to true
to compile templates as CommonJS modules--cjs
flag to dustc
dust.compiler
(but leave it exposed until 2.8) (@sethkinast)chunk.stream
to allow streamables in context (@sethkinast)Context#resolve
when resolving a context function that returns a Chunk (@sethkinast)Changelog
v2.6.2 (2015/03/26 20:28 +00:00)
context.clone
and context.pop
and simplify chunk.partial. (@sethkinast)