0.0.3 • Published 10 years ago

ng-templates-brunch v0.0.3

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

Wrap templates in an AngularJS module for Brunch.IODependency Status Stories in Ready

For each template, wrap around in a shared AngularJS module called app.templates by default with each template file's path as the template URL. See $templateCache for more information.

Installation

npm install --save ng-templates-brunch

Usage

  1. Set joinTo attribute for templates in config.coffee, e.g.

    templates: joinTo: 'templates.js': /^app/

  2. In your markup, include templates.js:

  3. Your app module must require an app.templates module:

    angular.module('MyApp', ... 'app.templates' ... );

  4. Get a particular template by its path.

    $routeProvider.when('/home', { templateUrl: 'app/home/home.html' });

  5. Run Brunch (e.g. brunch build)!

Options

Module name

Specify the module to place the templates

plugins:
  ngTemplates:
    module: 'MyModule'
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago