-
Notifications
You must be signed in to change notification settings - Fork 0
0.2.0 type TSelector
Ivan S Glazunov edited this page Feb 20, 2015
·
3 revisions
type TSelector = string;
Simple string sintax for classes, id and attributes of tag.
- In a attributes you can use a Templates._stringTemplate.
'.class-.fdsaDss.pngClas-gfdreDS#Id1#Id2[attr1=http://google.com/images/logo.png][attr3=".com/images/logo.png",attr4 "attr6"][alt=#item]'
As IAttributes
{
class: 'class- fdsaDss pngClas-gfdreDS',
id: 'Id2',
attr1: 'http://google.com/images/logo.png',
attr3: '.com/images/logo.png',
attr4: null,
'"attr6"': 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