-
Notifications
You must be signed in to change notification settings - Fork 0
0.2.2 t TSelector
Ivan S Glazunov edited this page Feb 20, 2015
·
2 revisions
type TSelector = string;
Simple string sintax for classes, id and attributes of tag.
In quotes "
/'
describing the attribute may be used string template.
.abc.DcE.fGh-iJk#Id1#Id2[a0=http://localhost/logo.png,bC='http://localhost/logo.png'][D-e="http://localhost/logo.png",f_g'hI' "Jk"][alt=#item]
Result as a IAttributes:
{
class: 'abc DcE fGh-iJk',
id: 'Id2',
a0: 'http://localhost/logo.png',
bC: 'http://localhost/logo.png',
'D-e': 'http://localhost/logo.png',
'f_g': null,
"'hI"': null,
'"Jk"': null,
alt: '#item'
}
- 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