You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
initially it was a little confusing, but now we have got used to it ..
we use it for other things too
Most often we tend to reuse the same data in the template again and again ... One way to avoid been repetitive is use aliases. So a common question was, how does dust support this ?
Well, in dust there is more than one way neat way to do this.
Use Inline Partials
Inline partials never output content themselves, and are always global to the template in which they are defined, so the order of their definition has no significance.
Key points to note : They are global to the template., there is no ordering and can be defined anywhere
A common use case is to have a layout like so
layout.dust
And then have a template use that layout
home.dust
Which would render:
Right now I'm doing it like this:
layout.dust
home.dust
Is the first way supported? If not, consider this a feature request :)
The text was updated successfully, but these errors were encountered: