Open zspecza opened 11 years ago
Great idea! There's not a huge number of templates at the moment but it will definately help.
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.
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')
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.