quangv / hulk-hogan

Hogan.js for Express with support for Template Partials.
MIT License
37 stars 2 forks source link

How to use layouts? #5

Closed geuis closed 12 years ago

geuis commented 12 years ago

The examples all seem to show how to only render partials. However, I'd like to continue using the default Express pattern of a layout.html file wrapping the contents of matching routes. What's the syntax on how to do this?

geuis commented 12 years ago

Found it. Use {{{body}}} in your layout file

quangv commented 12 years ago

Hey geuis,

Thanks for checking out HH and documenting your fix. :)

I'm glad you was able to figure it out, cheers.