2dcee73454
Moves the `wp.template` helper to `wp-backbone.js`. git-svn-id: https://develop.svn.wordpress.org/trunk@24358 602fd350-edb4-49c9-b593-d223f7449a82
1 line
293 B
JavaScript
1 line
293 B
JavaScript
window.wp=window.wp||{};(function(b){var a;a=wp.template=_.memoize(function(e){var d,c={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(f){d=d||_.template(b("#tmpl-"+e).html(),null,c);return d(f)}})}(jQuery)); |