Questions tagged [dustc]

Dustc is a command line tool to compile dust templates.

6 questions
1
vote
0 answers

Passing dust compilation options to Gulp Dust task

I would like to pass various dustc options to gulp-dust in my node application. For eg, How can I set amd, cwd in gulp-dust. I understand we can pass name and preserveWhiteSpace in compilation options. But, what about other options? Code…
Bharanidharan K
  • 679
  • 1
  • 9
  • 11
1
vote
2 answers

Compile dust template with line breaks

Compiling a such template with dustc: $ cat <Hi there!

I'm a {! dust !} template.

EOF outputs: (function(){dust.register("-",body_0);function body_0(chk,ctx){return chk.write("

Hi there!

I'm…

abernier
  • 27,030
  • 20
  • 83
  • 114
0
votes
1 answer

Dustjs OR helper

How to write below statement using dust helper? {@eq key="device" value="windows || Linux"} Your system is Windows or Linux based. {:else} Your system is MAC based. {/eq}
user3380358
  • 143
  • 1
  • 7
0
votes
1 answer

how to precompile a dust template

dust-compiler -s controllers/inbox/views/inbox.dust -d public/js/custom/inbox/messages.js but i am getting error if (err) throw err; ^ Error: ENOTDIR, scandir 'C:\jbk\buy2gthr-master\controllers\inbox\views\inbox.dust' at…
PREETAM YADAV
  • 184
  • 3
  • 8
0
votes
1 answer

Compile template containing Partial

I have a dustjs template heirarchy like so: layout.dust ... {> "book/BookListings" /} ... Then, BookListings.dust: {#books} {> "templates/OneBook" /} {/books} I have several books to display in BookListings. For every Book, I use OneBook…
myusuf
  • 11,810
  • 11
  • 35
  • 50
0
votes
1 answer

Bamboo Grunt 'dustc' task failing

I've moved my grunt job into Bamboo and everything works great except for the dust compiler. All of my other tasks in my gruntfile can be targeted from the bamboo task and they work. The dustc task gives this error when run: Fatal error: Error:…
user2864874
  • 829
  • 1
  • 9
  • 21