0.1.0 • Published 10 years ago

grunt-compiled-jade v0.1.0

Weekly downloads
-
License
BSD
Repository
-
Last release
10 years ago

grunt-compiled-jade

compile jade template.

install

% cd your/grunt/project/root
% npm install grunt-compiled-jade --save-dev

usage

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        compiled_jade: {
            dev: {
                template: '../views/partial/*.jade',
                dest: 'js/jade.js',
                runtime: 'node_modules/jade/runtime.js',
                prefix: 'template'
            }
        }
    });

    grunt.loadNpmTasks('grunt-compiled-jade');

    grunt.registerTask('default', ['compiled_jade:dev']);
};