grunt-bumtemp
Backbone, Underscore, Marionette Template Engine wraps html files in script tags and concats them to one file.
Getting Started
This plugin requires Grunt.
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-bumtemp --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "bumtemp" task
Overview
In your project's Gruntfile, add a section named bumtemp
to the data object passed into grunt.initConfig()
.
grunt
Usage Example
In this example, we create a master template file from 3 files (header.html, footer.html, and content.html)
grunt
Result:
<!-- grunt-bumtemp generated file --> <!-- @grunt-bumtemp: Template from content --> Hello, World! <!-- /#content :@grunt-bumtemp --> <!-- @grunt-bumtemp: Template from footer --> Good Bye <!-- /#footer :@grunt-bumtemp --> <!-- @grunt-bumtemp: Template from header --> Some Header, eh? <!-- /#header :@grunt-bumtemp -->
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
0.1.3 : Remove extra line in build output.
0.1.1 : Shows entire path in comment section.
0.1.0 : Remove chalk completely.
0.0.2 : Adds chalk as dependency
0.0.1 : First Release
License
Copyright (c) 2014 Matt McFarland. Licensed under the MIT license.