Questions tagged [dust-helpers]

Context helpers are augments to the core Dust template syntax.

https://github.com/linkedin/dustjs-helpers

Context helpers are augments to the core Dust template syntax. It's possible to write your own helpers and extend the functionality of Dust's templating system.

The helpers we provide as part of this repository fulfill some of the most common use cases encountered while using Dust. We provide official support for these helpers as part of the core Dust library.

19 questions
0
votes
1 answer

What would be a good approach for providing d3 capability in a dust-helper?

Right now I've been considering writing a dust-helper that renders barcharts into dust files server-side using a custom dust-helper and the d3 module for node. I was wondering if there was a better way than to construct some sort of context object…
Patrick Roberts
  • 49,224
  • 10
  • 102
  • 153
0
votes
0 answers

Async Client Side Rendering React components using Dust JS Templates

I'm having a dust helper called {@component id="compId" path="path/to/react/component"}. About React component: The react component makes an ajax call in componentWillMount and calls forceUpdate. psueodcode: React.createClass(){ …
Bharanidharan K
  • 679
  • 1
  • 9
  • 11
-1
votes
1 answer

How to hide and display content in a dust template?

I am a rookie in nodejs. I am making an e-commerce site using kraken framework and dust template. I want to display Log in and Log out text depending upon the session status. My logout and login functionality is working fine. I want to hide the…
kinny94
  • 376
  • 1
  • 5
  • 22
-1
votes
1 answer

Dust helper equal for select control

I have this template i need select proper selected option, how to compare it with dust helpers? https://stackoverflow.com/a/19628029/880709 didn't work for me {#data.PRODUCT_TURNOVER_DATA}
Anatoly Ruchka
  • 543
  • 4
  • 17
1
2