-
Notifications
You must be signed in to change notification settings - Fork 0
0.2.1 el Doctype
Ivan S Glazunov edited this page Feb 20, 2015
·
2 revisions
[new] (...arguments: Array<IAttributes|TSelector>) => this;
- Provides doctype view methods.
var Doctype = Templates.Doctype;
var html = Doctype('[name]');
html.render(console.log);
<!DOCTYPE html>
string = 'DOCTYPE';
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