Skip to content

dbashford/mimosa-html-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mimosa-html-templates

Overview

This is a HTML template compiler for the Mimosa build tool. This module is for use with Mimosa 2.0+. This replicates the functionality of the HTML template compiler that was built into Mimosa before 2.0.

For more information regarding Mimosa, see http://mimosa.io

Usage

Add 'html-templates' to your list of modules. That's all! Mimosa will install the module for you when you start mimosa watch or mimosa build.

Functionality

This module will compile plain HTML micro-templates into reusable javascript functions during mimosa watch and mimosa build.

This module utilizes all of the built-in template behavior that comes with Mimosa's basic template compiler. See the mimosa website for more information about how templates are treated or check out the various template configuration options.

Default Config

htmlTemplates:
  extensions: ["template"]
  • extensions: an array of strings, the extensions of your HTML templates. If you choose to change the value here to html, be sure to remove html from the copy.extensions array if you are using the mimosa-copy module.

About

A Mimosa 2.0 module for plain HTML micro templates

Resources

Stars

Watchers

Forks

Packages

No packages published