Wordpress/wp-includes/js/wp-backbone.min.js
Daryl Koopersmith 2dcee73454 Begin a common WordPress Backbone helpers file.
Moves the `wp.template` helper to `wp-backbone.js`.



git-svn-id: https://develop.svn.wordpress.org/trunk@24358 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-25 20:47:55 +00:00

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));