-
Notifications
You must be signed in to change notification settings - Fork 0
0.2.2 e Single
ivansglazunov edited this page Jan 26, 2015
·
4 revisions
[new] (...arguments: Array<IAttributes|TSelector>) => this;
- Provides single tags view methods.
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"/>
string = '<';
string = '/>';
- TData: Renderer|sync|async|Mixin
- TCallback: (error, result) => void
- TSelector: string
- TInjector: () => void
- TAttributes: [name: string]: TData
- TContext: TData
Node.js:
var T = require('oswst');
Require.js:
define(['oswst'], function(T) {});
window
:
var T = window.oswst(_, async);
-
Templates
- .compile
- .include
- .render
- .renderContext
- .renderAttributes
- .renderSelector
- .sync
- .isSyncFunction
- .async
- .isAsyncFunction
- .Prototype()
- .Renderer > .Prototype
- .Data > .Renderer
- .data > .Data
- .Tag > .data
- .Single > .Tag
- .singles[string]
- .Double > .Tag
- .doubles[string]
- .Doctype > .Tag
- .doctypes[string]
- .xml > .Tag
- .Mixin > .Data
- .mixin > .Mixin
- .mixins[string]
- .Module > .Renderer
- .with