1.7.0 • Published 10 years ago

grunt-ember-template-compiler v1.7.0

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

grunt-ember-template-compiler

Getting Started

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-ember-template-compiler --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-ember-template-compiler');

Usage Example:

emberhandlebars: {
  compile: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/templates/');
        return newSource.replace('.handlebars');
      }
    },
    files: [
      'src/templates/*.handlebars'
    ],
    dest: 'src/templates.js'
  }
}

MultiTask Usage Example:

emberhandlebars: {
  task_one: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/one/templates/');
        return newSource.replace('.handlebars');
      }
    },
    files: [
      'src/one/templates/*.handlebars'
    ],
    dest: 'src/one/templates.js'
  },
  task_two: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/two/templates/');
        return newSource.replace('.handlebars');
      }
    },
    files: [
      'src/two/templates/*.handlebars'
    ],
    dest: 'src/two/templates.js'
  }
}
1.7.0

10 years ago

1.5.0

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.2

11 years ago

1.0.6

11 years ago

1.0.5

11 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago