0.10.1 • Published 9 years ago

skin-template v0.10.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Logo

A template engine built on the top of ES6 template literals syntax and Google IncrementalDOM.

Install

NPM

$ npm i skin-template --save

Bower

$ bower i skin-template --save

Quick use

Import the library:

<script src="path/to/skin-template.js"></script>

Bootstrap a template:

var template = new Skin('name', 'age', ' \
    <div class="card"> \
        <span class="user-name">${name}</span> \
        <span class="user-age">${age}</span> \
    </div> \
');

template.render(document.body, 'Alan', 11);

Limitations

  • At the moment, only html wrapped by "`" (backtiks) is supported. Any other string will be ignored by the compiled and treat as function statement.
  • If you are targeting ES5 browsers, remember that the template string will not be transpiled during your build process.

Dev

Travis Code coverage

Sauce Test Status

0.10.1

9 years ago

0.10.0

9 years ago

0.9.0

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago