Skip to content

sirlancelot/micro-template-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-template loader

Usage

Documentation: Using loaders

Simple API

require("micro-template!./file.html");

Recommended configuration

You should be able to safely pass all your HTML files through micro-template even if your templates don't have any <% %> tags.

{
  module: {
    loaders: [
      { test: /\.html$/, loader: "micro-template" }
    ]
  }
}

About

A webpack loader which pre-compiles John Resig's micro-templates as seen on http://ejohn.org/blog/javascript-micro-templating/

Resources

Stars

Watchers

Forks

Packages

No packages published