anthonyshort / grunt-component-build

Build Components using Grunt.
MIT License
29 stars 12 forks source link

Feature request - converting templates #28

Closed rogerz closed 11 years ago

rogerz commented 11 years ago

Could this plugin convert templates files specified in component.json automatically to template.js?

rogerz commented 11 years ago

It seems I can do it with component-html. Thanks.

anthonyshort commented 11 years ago

With the latest version of Component you don't need a plugin for this either, it's built-in

rogerz commented 11 years ago

Is that true that the template.html.js will be an intermediate file only? I didn't find it after build but the content seems to be included in build.js

anthonyshort commented 11 years ago

Yeah it's included in the build, it doesn't create a .js file for it.

anthonyshort commented 11 years ago

And it can be anything, not just HTML. It just turns everything in templates into strings and adds them to the build