Skip to content

0.2.3 elements Single

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

Single

[new] (...arguments: Array<IAttributes|TSelector>) => this;

Single > Tag > Content > Prototype

  • Provides single tags view methods.

Instance

var Single = Templates.Single;

var img = Single('#general.class[src=image.png]').name('img');
img.render(console.log);
<img class="class" id="general" src="image.png"/>

._quotesLeft

string = '<';

._quotesRight

string = '/>';

Clone this wiki locally