We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 587fd7c commit a1ccd4dCopy full SHA for a1ccd4d
js/tmpl.js
@@ -15,7 +15,7 @@
15
/*jslint evil: true, regexp: true, unparam: true */
16
/*global document, define */
17
18
-(function ($) {
+(function (w) {
19
"use strict";
20
var tmpl = function (str, data) {
21
var f = !/[^\w\-\.:]/.test(str) ? tmpl.cache[str] = tmpl.cache[str] ||
@@ -77,11 +77,7 @@
77
tmpl.arg = "o";
78
tmpl.helper = ",print=function(s,e){_s+=e?(s==null?'':s):_e(s);}" +
79
",include=function(s,d){_s+=tmpl(s,d);}";
80
- if (typeof define === "function" && define.amd) {
81
- define(function () {
82
- return tmpl;
83
- });
84
- } else {
85
- $.tmpl = tmpl;
86
- }
87
-}(this));
+
+ w["tmpl"] = tmpl;
+})(window);
0 commit comments