Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Require mtmpl files with webant.

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

node-modules-webant-handler-mtmpl

Require John Resig style micro-templating files with webant

See:

Installation

$ npm install webant-handler-mtmpl

Usage

Ensure the mtmpl handler is present in your webant configuration file. For example:

{
    "entry":"src/js/main.js",
    "dest":"build/main.js",
    "handlers":["mtmpl"]
}

You may now require mtmpl files:

require("../path/to/tmpl.mtmpl");

See the webant module for more information.

Tests Build Status

Ensure phantomjs is installed and in your PATH, then run:

$ npm test
Something went wrong with that request. Please try again.