javascript - Dust.js dynamic keys & sections -



javascript - Dust.js dynamic keys & sections -

i new dust.js. possible latest version of dust.js display value via dynamic keys or sections? if possible please show me how. if not possible, how can work on such status using javascript dust.js?

thank you.

if utilize linkedin's fork of dust then, yes, can utilize dynamic variables. next context:

{ variable: 'one', object: { one: 'first variable', two: 'second variable' } }

you can next in template:

{object[variable]}

which print 'first variable'.

javascript template-engine dust.js

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -