Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/* | |
Written by Peter O. | |
Any copyright to this work is released to the Public Domain. | |
In case this is not possible, this work is also | |
licensed under Creative Commons Zero (CC0): | |
https://creativecommons.org/publicdomain/zero/1.0/ | |
*/ |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/** | |
* twig.async.js | |
* | |
* An asynchronous implementation of twigjs that returns a Promise on instantiation if the template is asynchronous. | |
* Works just like twig(), but when instantiated, twigAsync returns a Promise. The twig template | |
* is passed as the only parameter when resolving the Deferred object. | |
* | |
* e.g. | |
* tpl = twigAsync({href:'/templates/profile/profile-welcomeNewDesign.twig'}); | |
* $.when(tpl).done(function(twigTemplate){ |