AmpersandJS / examples

A collection of example apps/patterns using ampersand
MIT License
45 stars 16 forks source link

Hapi-handlebars example #4

Closed fiveisprime closed 9 years ago

fiveisprime commented 9 years ago

Example is based on the Ampersand application generated when using the Ampersand CLI but adds a browserify transform for using handlebars templates.

fyockm commented 9 years ago

@fiveisprime Thanks for the PR! Reviewing now.

fyockm commented 9 years ago

Aside from the somewhat ugly require syntax, I really like this approach. Thanks for sharing!

template: require('../../templates/pages/info.hbs')
fiveisprime commented 9 years ago

Haha yeah, I'm incredibly conflicted when it comes to the require syntax. It's not the most elegant or lovely solution and I love and hate it for the same reason: it's very specific. The relative paths are very descriptive and make it easy to understand which is great until things have to change then it's not so great.

Thanks for merging it. Hopefully others find the transform example useful. :)