Skip to content

adding support for AMD, CommonJs or global browser space#16

Open
tarnowsc wants to merge 6 commits intojasonmoo:masterfrom
tarnowsc:master
Open

adding support for AMD, CommonJs or global browser space#16
tarnowsc wants to merge 6 commits intojasonmoo:masterfrom
tarnowsc:master

Conversation

@tarnowsc
Copy link

this leaves the global t variable when using the normal way but allows to use as a proper reqire.js module i.e.

define(["t"], function (t) {
    return (new t("{{=data}}")).render({data: 'myData'});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants