Lines Matching full:compiled
16 /** Used to match empty string literals in compiled template source. */
42 /** Used to match unescaped characters in compiled string literals. */
52 * Creates a compiled template function that can interpolate data properties
83 * The sourceURL of the compiled template.
87 * @returns {Function} Returns the compiled template function.
90 * // Use the "interpolate" delimiter to create a compiled template.
91 * var compiled = _.template('hello <%= user %>!');
92 * compiled({ 'user': 'fred' });
96 * var compiled = _.template('<b><%- value %></b>');
97 * compiled({ 'value': '<script>' });
101 …* var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>'…
102 * compiled({ 'users': ['fred', 'barney'] });
106 * var compiled = _.template('<% print("hello " + user); %>!');
107 * compiled({ 'user': 'barney' });
112 * var compiled = _.template('hello ${ user }!');
113 * compiled({ 'user': 'pebbles' });
117 * var compiled = _.template('<%= "\\<%- value %\\>" %>');
118 * compiled({ 'value': 'ignored' });
123 * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
124 * compiled({ 'users': ['fred', 'barney'] });
128 * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
129 * compiled(data);
132 * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
133 * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
134 * compiled.source;
143 * var compiled = _.template('hello {{ user }}!');
144 * compiled({ 'user': 'mustache' });
147 * // Use the `source` property to inline compiled templates for meaningful
263 // Provide the compiled function's source by its `toString` method or
264 // the `source` property as a convenience for inlining compiled templates.