ES6 string HTML template
It is a brief HTML template using ES6 string template.
Install
npm install --save es6-string-html-template
Usage Example
ES6 modules:
{ return html` created at `} let articleHtml = console // output:// <article>// <h1>Jim's daily</h1>// <ol>// <li>Open computer</li>// <li>Write <code>console.log("Hello world!")</code>// </li>// </ol>// <footer>Tom created at 2017-04-01</footer>// </article>
CommonJs modules:
const html escape raw = { return html` created at `} let articleHtml = console// output://// <article>// <h1>Jim's daily</h1>// <ol>// <li>Open computer</li>// <li>Write <code>console.log("Hello world!")</code>// </li>// </ol>// <footer>Tom created at 2017-04-01</footer>// </article>