-
Notifications
You must be signed in to change notification settings - Fork 0
0.2.8 elements Double
Ivan S Glazunov edited this page Feb 20, 2015
·
2 revisions
[new] (...arguments: Array<IAttributes|TSelector>) => .content => this;
- Provides single tags view methods.
var Double = Templates.Double;
var div = Double('#general.class')('content').name('div');
div.render(console.log);
<div class="class" id="general">content</div>
string = '<';
string = '>';
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