-
Notifications
You must be signed in to change notification settings - Fork 0
0.2.7
Ivan S Glazunov edited this page Feb 20, 2015
·
2 revisions
- Only JavaScript is required!
- Reconfigurable at any time.
- Allows you to work with asynchronous data.
- Inheritance simplicity.
npm install osws-templates --save
-
Templates
- ._jsContentRequire [Node.js]
- .includeString [Node.js]
- .include [Node.js]
- .includeSync [Node.js]
- .asSync
- .asAsync
- .isSync
- .isAsync
- .dataRender
- .wrapMethod
- .mixin
- .with
- Prototype
- Content > Prototype
- content > Content
- Tag > Content
- Single > Tag
- singles > Single
- Double > Tag
- doubles > Double
- Doctype > Tag
- doctypes > Doctype
- Module > Content
- 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