node.js - Dustjs if condition for json -
how can set proper status check based on json data
i'm sending json object node layer dust template, based on object value want hide/show data. nodejs frameworke used krajenjs 0.7.5
1.{ access : { home : false} } 2.{ access : { home : false} }
worked fine 2
{@if cond="{access.home}"} <div>home</div> {/if}
how create work 1
using if condition
notation
or
like below not work [[--------update----------]] works fine
{?access.home} <div>home</div> {/access.home} {^access.home} <div>home</div> {/access.home}
node.js dust.js kraken.js
No comments:
Post a Comment