Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the default index.dust looks broken...Check the body tag out. #12

Closed
pvenkatakrishnan opened this issue Nov 21, 2013 · 4 comments
Closed

Comments

@pvenkatakrishnan
Copy link
Member

{>"layouts/master" /}

{<body}
    <h1>{@pre type="content" key="index.greeting"/}</h1>
{/body}
@pvenkatakrishnan
Copy link
Member Author

Generated a new project and this is the default dust that was generated.

@lensam69
Copy link
Contributor

Hi,
Those are actually dust partials.
It allows you to insert one dust template inside another.

Take a look at layouts/master
"Body" in this case denotes where it will be inserted.
Check out the docs:

https://github.com/linkedin/dustjs/wiki/Dust-Tutorial#wiki-Partials

@pvenkatakrishnan
Copy link
Member Author

interesting semantics i have used the '>' include notation but never '<'.
Thanks for that.

@jeffharrell
Copy link
Member

Yep, different semantics. In this case it's using a dust inline template and injecting content back into it.

-- Jeff

On Nov 21, 2013, at 6:14 PM, "pvenkatakrishnan" <notifications@github.commailto:notifications@github.com> wrote:

interesting semantics i have used the '>' include notation but never '<'.
Thanks for that.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-29043981.

t0lkman pushed a commit to t0lkman/kraken-js that referenced this issue Feb 6, 2014
Added "How to contribute" section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants