smfoote / tornado

HTML templates with asynchronous rendering, built with JavaScript.
http://smfoote.github.io/tornado/
Apache License 2.0
8 stars 3 forks source link

Create version of compiled output that requires no runtime #144

Open smfoote opened 8 years ago

smfoote commented 8 years ago

I want to be able to compile a template that I can import without requiring any additional dependencies.

import blogPostTemplate from './templates/blogPost';

...
  render(model) {
    // for demonstration purposes only
    container.innerHTML = '';
    container.appendChild(blogPostTemplate.render(model));
  },

...