/*! JsRender v0.9.88 (Beta): http://jsviews.com/#jsrender */ /*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */ /* * Best-of-breed templating in browser or on Node.js. * Does not require jQuery, or HTML DOM * Integrates with JsViews (http://jsviews.com/#jsviews) * * Copyright 2017, Boris Moore * Released under the MIT License. */ //jshint -W018, -W041, -W120 (function(factory, global) { // global var is the this object, which is window when running in the usual browser environment var $ = global.jQuery; if (typeof exports === "object") { // CommonJS e.g. Browserify module.exports = $ ? factory(global, $) : function($) { // If no global jQuery, take optional jQuery passed as parameter: require('jsrender')(jQuery) if ($ && !$.fn) { throw "Provide jQuery or null"; } return factory(global, $); }; } else if (typeof define === "function" && define.amd) { // AMD script loader, e.g. RequireJS define(function() { return factory(global); }); } else { // Browser using plain