Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/panthershark/grunt-templates

Generates a list of templates for requirejs. Could be used for any template walking.
https://github.com/panthershark/grunt-templates

Last synced: about 2 months ago
JSON representation

Generates a list of templates for requirejs. Could be used for any template walking.

Awesome Lists containing this project

README

        

grunt-templates
===============

Generates a list of templates for requirejs. Could be used for any template walking.

``javascript
grunt.initConfig({

'grunt-templates': {
task1: {
viewResolver: {
view: {
base: ["./fixtures/views1", "./fixtures/views2"]
}
},
output: './output/templates.js'
},
task2: {
viewResolver: {
view: {
base: ["./fixtures/views1"]
}
},
output: './output/templates2.js'
}
}

});

grunt.loadTasks("grunt-templates");
grunt.registerTask('default', ['grunt-templates']);
``