Skip to content

ezekielchentnik/domlyify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

domlyify

DOMly precompiler plugin for Browserify

Installation

npm install domlyify

Usage

This module is meant to be used together with browserify

Example example.js:

var template = require('./example-template.html');

template({title: 'example'});

Example example-template.html:

<h1>{{data.title}}</h1>

Compile Options

This plugin can give DOMly's compile options.

browserify -t [ domlyify --stripWhitespace true ] example.js

You can also configure it in package.json

{
    "name": "example-package",
    "browserify": {
        "transform": [
            [ "domlyify", {"stripWhitespace": true } ],
        ]
    }
}

#### Available option

...

### With gulp.js

...

### With grunt.js

...

## Tests

    npm test


## Roadmap

    - add tests
    - add examples

## Author

Ezekiel Chentnik

About

DOMly precompiler plugin for Browserify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published