I created a project using Kraken 1.0.1 with yo kraken, with template engine dustjs, but I can not use functions dustjs-helpers.
My config.json:
"express": {
"view cache": false,
"view engine": "dust",
"views": "path:./public/templates"
},
"view engines": {
"dust": {
"module": "engine-munger",
"renderer": {
"method": "dust",
"arguments": [
{ "cache": false},
{
"views": "config:express.views",
"view engine": "config:express.view engine",
"specialization": "config:specialization",
"i18n": "config:i18n"
}
]
}
}
}
template.dust (not working helpers)
{@if cond="1<2"}
<div> x is less than y and b == c and either e or f exists in the output </div>
{:else}
<div> x is >= y </div>
{/if}
template2.dust (working)
{?messages}
{#messages}
<div data-alert class="alert-box info radius">
{.}
<a href="#" class="close">×</a>
</div>
{/messages}
{/messages}
Only dusts core working, I add dustjs-helpers with npm. How add dustjs-helpers in my kraken project?