Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Build angular modules from html template files
JavaScript
branch: master

This branch is 1 commit ahead of ceymard:master

Failed to load latest commit information.
.gitignore
.npmignore
README.md Initial refactoring
index.js Initial refactoring
package.json Initial refactoring

README.md

gulp-angular-templates

This plugins allows you to bundle templates directly in your application using the $templateCache service.

Install it with npm install gulp-angular-templates --save-dev.

Usage

var angularTemplates = require('gulp-angular-templates');

gulp.task('html', function () {
    return gulp.src('app/partials/**/*.html')
        .pipe(angularTemplates())
        .pipe(gulp.dest('./build/'));
});

API

angularTemplates(options)

options.basePath

Type: String

The path that should be prefixed to the path that was specified using gulp.src.

options.module

Type: String

The name of the module that will be used.

options.standalone

Type Boolean

Indicate whether the module name that was specified using options.module is intended to be standalone.

Something went wrong with that request. Please try again.