mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-13 19:51:23 +01:00
2815460247
Moves the `wp.template` helper to `wp-backbone.js`. git-svn-id: http://core.svn.wordpress.org/trunk@24358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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)); |