Simpanoz
Simpanoz

Reputation: 2859

How to disable layout usage in Dust Template engine

1- Is there any default layout settings in Dust template engine ?

How can I disable usage of layout altogether?

Upvotes: 0

Views: 191

Answers (2)

d2uX
d2uX

Reputation: 241

If you are refering to adaro (which is used to render templates in kraken) you can simply pass false to the layout property. Documented here

A layout typically refers to a template with the special partial {>"{_main}"/}

This "wrapper" can be disabled:

// Disable layout altogether
dust.render('index', { layout: false }, ...);

Hope this helps. Greetings.

Upvotes: 0

rragan
rragan

Reputation: 484

I'm assuming you mean {+placholder} and {<inlinepartial} as these are the mechanisms of layout for dust. I know of no way to disable it but other than preventing your users from using this, why would you want to disable it? It doesn't really cost anything if you don't use it.

Upvotes: 0

Related Questions