krakenjs / kraken-js

An express-based Node.js web application bootstrapping module.
Other
4.94k stars 459 forks source link

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

Closed pvenkatakrishnan closed 10 years ago

pvenkatakrishnan commented 10 years ago
{>"layouts/master" /}

{<body}
    <h1>{@pre type="content" key="index.greeting"/}</h1>
{/body}
pvenkatakrishnan commented 10 years ago

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

lensam69 commented 10 years ago

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 commented 10 years ago

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

jeffharrell commented 10 years ago

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.com<mailto: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/paypal/kraken-js/issues/12#issuecomment-29043981.