andyhmltn / ember-js-chatapp

MIT License
3 stars 1 forks source link

Implement a Module Pattern #6

Open zspecza opened 11 years ago

zspecza commented 11 years ago

RequireJS will prove handy. It's fairly easy to get started with, will allow separate templates with the text! plugin. Possibly include a Grunt/Make/Jake file for automating the build process.

andyhmltn commented 11 years ago

Great idea! There's not a huge number of templates at the moment but it will definately help.

andyhmltn commented 11 years ago

This is a lot harder than it seemed. I can't find to find any decent documentation on how to load external templates that don't require huge bloated tools.

zspecza commented 11 years ago

I read a tutorial somewhere - can't find it again though I'm trying my hardest, that doesn't need any extra bloated tools - you literally just set the view engine as normal, instead of using app.set('view engine', 'handlebars') try app.engine('handlebars')