UNPKG

requirejs-dustjs

Version:

A requirejs plugin for loading and compiling dustjs templates.

21 lines (18 loc) 458 B
(function () { //Define the plugin. function plugin($) { $.fn.gamma = function() { return 'gamma'; }; $(function () { doh.is('gamma', $('body').gamma()); readyFired(); }); } //Register the plugin. if (typeof define !== 'undefined' && define.amd) { define(['jquery'], plugin); } else if (typeof jQuery !== 'undefined') { plugin(jQuery); } }());