Sha256: 984f1afcc13ebc9d1e6df1c73fcfa4bfe25f8236bf5b9316ff078c4a79f972d5
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
/* * JavaScript Templates Runtime * https://github.com/blueimp/JavaScript-Templates * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define */ ;(function ($) { 'use strict' var tmpl = function (id, data) { var f = tmpl.cache[id] return data ? f(data, tmpl) : function (data) { return f(data, tmpl) } } tmpl.cache = {} tmpl.encReg = /[<>&"'\x00]/g // eslint-disable-line no-control-regex tmpl.encMap = { '<': '<', '>': '>', '&': '&', '"': '"', "'": ''' } tmpl.encode = function (s) { return (s == null ? '' : '' + s).replace( tmpl.encReg, function (c) { return tmpl.encMap[c] || '' } ) } if (typeof define === 'function' && define.amd) { define(function () { return tmpl }) } else if (typeof module === 'object' && module.exports) { module.exports = tmpl } else { $.tmpl = tmpl } }(this))
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
medium-editor-insert-plugin-rails-0.0.2 | bower_components/blueimp-tmpl/js/runtime.js |
medium-editor-insert-plugin-rails-0.0.1 | bower_components/blueimp-tmpl/js/runtime.js |