Lines Matching full:template
23 INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
128 /** Used to match empty string literals in compiled template source. */
139 /** Used to match template delimiters. */
171 * Used to validate the `validate` option in `_.template` variable.
187 * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
212 /** Used to ensure capturing order of template delimiters. */
304 /** Used to make template sourceURLs easier to identify. */
1137 * Used by `_.template` to escape characters for inclusion in compiled string literals.
1659 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
1751 * By default, the template delimiters used by lodash are like those in
1752 * embedded Ruby (ERB) as well as ES2015 template strings. Change the
1753 * following template settings to use alternative delimiters.
1786 * Used to reference the data object in the template text.
1794 * Used to import variables into the compiled template.
9590 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
14735 * Creates a compiled template function that can interpolate data properties
14738 * properties may be accessed as free variables in the template. If a setting
14741 * **Note:** In the development build `_.template` utilizes
14755 * @param {string} [string=''] The template string.
14762 * An object to import into the template as free variables.
14766 * The sourceURL of the compiled template.
14770 * @returns {Function} Returns the compiled template function.
14773 * // Use the "interpolate" delimiter to create a compiled template.
14774 * var compiled = _.template('hello <%= user %>!');
14779 * var compiled = _.template('<b><%- value %></b>');
14784 * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
14789 * var compiled = _.template('<% print("hello " + user); %>!');
14793 * // Use the ES template literal delimiter as an "interpolate" delimiter.
14795 * var compiled = _.template('hello ${ user }!');
14800 * var compiled = _.template('<%= "\\<%- value %\\>" %>');
14806 * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
14810 * // Use the `sourceURL` option to specify a custom sourceURL for the template.
14811 * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
14815 * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
14816 * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
14824 * // Use custom template delimiters.
14826 * var compiled = _.template('hello {{ user }}!');
14834 * "main": ' + _.template(mainText).source + '\
14838 function template(string, options, guard) {
16915 lodash.template = template;