12 ms·
I really don't like the long concatenated HTML strings embedded in the scripting code. Is there a way to do templating here?
by lurchpop 12y ago
I really don't like the long concatenated HTML strings embedded in the scripting code. Is there a way to do templating here?
- rubbingalcohol 12y agoI use composer.js + underscore for templating all the time.
- orthecreedence 12y agoOf course, you can use any templating option you like. Raw HTML was used in the examples because we don't want people getting confused by thinking that Composer makes this choice for you. You can use Handlebars, Mustache, underscore, etc etc. Just take the output of your templating engine and pass it into `Controller.html()`.