Lines Matching full:template
127 /** Used to match empty string literals in compiled template source. */
138 /** Used to match template delimiters. */
173 …* [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexica…
198 /** Used to ensure capturing order of template delimiters. */
290 /** Used to make template sourceURLs easier to identify. */
1110 * Used by `_.template` to escape characters for inclusion in compiled string literals.
1617 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
1709 * By default, the template delimiters used by lodash are like those in
1710 * embedded Ruby (ERB) as well as ES2015 template strings. Change the
1711 * following template settings to use alternative delimiters.
1744 * Used to reference the data object in the template text.
1752 * Used to import variables into the compiled template.
9522 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
14667 * Creates a compiled template function that can interpolate data properties
14670 * properties may be accessed as free variables in the template. If a setting
14673 * **Note:** In the development build `_.template` utilizes
14687 * @param {string} [string=''] The template string.
14694 * An object to import into the template as free variables.
14698 * The sourceURL of the compiled template.
14702 * @returns {Function} Returns the compiled template function.
14705 * // Use the "interpolate" delimiter to create a compiled template.
14706 * var compiled = _.template('hello <%= user %>!');
14711 * var compiled = _.template('<b><%- value %></b>');
14716 …* var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>'…
14721 * var compiled = _.template('<% print("hello " + user); %>!');
14725 * // Use the ES template literal delimiter as an "interpolate" delimiter.
14727 * var compiled = _.template('hello ${ user }!');
14732 * var compiled = _.template('<%= "\\<%- value %\\>" %>');
14738 * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
14742 * // Use the `sourceURL` option to specify a custom sourceURL for the template.
14743 * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
14747 * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
14748 * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
14756 * // Use custom template delimiters.
14758 * var compiled = _.template('hello {{ user }}!');
14766 * "main": ' + _.template(mainText).source + '\
14770 function template(string, options, guard) { function
16818 lodash.template = template;