Skip to content

0.2.2 e Single

ivansglazunov edited this page Jan 26, 2015 · 4 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 = '/>';

Inherits

Clone this wiki locally