-
Notifications
You must be signed in to change notification settings - Fork 0
0.1.0 proto Double
Ivan S Glazunov edited this page Jan 22, 2015
·
1 revision
[new] ([selector], [attributes]) => .content(...arguments: data[]) => instance: Double > Tag > Contents > Prototype
Methodology unique to a double tags.
Implementations of Double here: double.
Double('.container')('content').name('div');
<div class="container">content</div>
var div = Double()().name('div').extend();
var span = Double()().name('span').extend();
div('#avatar.container')(span('.bold')());
<div id="avatar" class="container"><span class="bold"></span></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