Skip to content

0.2.0 content

Ivan S Glazunov edited this page Feb 20, 2015 · 6 revisions

[new] (...arguments: Array<TData>) => this;

content > Content > Prototype

  • Simple syntax generate content without tags.
  • Constructor arguments will be passed in the .content.

Theory about content.

Instance

var content = Templates.content;
var instance = content('1', function() { return '2'; });
instance.render(console.log) // 12

Inherits

Clone this wiki locally