Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 877AC1854E for ; Wed, 24 Feb 2016 17:50:36 +0000 (UTC) Received: (qmail 5776 invoked by uid 500); 24 Feb 2016 17:50:36 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 5694 invoked by uid 500); 24 Feb 2016 17:50:36 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 5298 invoked by uid 99); 24 Feb 2016 17:50:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 17:50:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8FF05E8EBD; Wed, 24 Feb 2016 17:50:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Wed, 24 Feb 2016 17:50:43 -0000 Message-Id: <19df02e734b94aad9d514ad3ea22616d@git.apache.org> In-Reply-To: <55365807a2624aa1ac3ca27ab7160246@git.apache.org> References: <55365807a2624aa1ac3ca27ab7160246@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/51] [partial] android commit: updated cordova-common dependnecy to 1.1.0 http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/string/template.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/string/template.js b/node_modules/lodash/string/template.js new file mode 100644 index 0000000..e75e992 --- /dev/null +++ b/node_modules/lodash/string/template.js @@ -0,0 +1,226 @@ +var assignOwnDefaults = require('../internal/assignOwnDefaults'), + assignWith = require('../internal/assignWith'), + attempt = require('../utility/attempt'), + baseAssign = require('../internal/baseAssign'), + baseToString = require('../internal/baseToString'), + baseValues = require('../internal/baseValues'), + escapeStringChar = require('../internal/escapeStringChar'), + isError = require('../lang/isError'), + isIterateeCall = require('../internal/isIterateeCall'), + keys = require('../object/keys'), + reInterpolate = require('../internal/reInterpolate'), + templateSettings = require('./templateSettings'); + +/** Used to match empty string literals in compiled template source. */ +var reEmptyStringLeading = /\b__p \+= '';/g, + reEmptyStringMiddle = /\b(__p \+=) '' \+/g, + reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; + +/** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */ +var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; + +/** Used to ensure capturing order of template delimiters. */ +var reNoMatch = /($^)/; + +/** Used to match unescaped characters in compiled string literals. */ +var reUnescapedString = /['\n\r\u2028\u2029\\]/g; + +/** + * Creates a compiled template function that can interpolate data properties + * in "interpolate" delimiters, HTML-escape interpolated data properties in + * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data + * properties may be accessed as free variables in the template. If a setting + * object is provided it takes precedence over `_.templateSettings` values. + * + * **Note:** In the development build `_.template` utilizes + * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) + * for easier debugging. + * + * For more information on precompiling templates see + * [lodash's custom builds documentation](https://lodash.com/custom-builds). + * + * For more information on Chrome extension sandboxes see + * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). + * + * @static + * @memberOf _ + * @category String + * @param {string} [string=''] The template string. + * @param {Object} [options] The options object. + * @param {RegExp} [options.escape] The HTML "escape" delimiter. + * @param {RegExp} [options.evaluate] The "evaluate" delimiter. + * @param {Object} [options.imports] An object to import into the template as free variables. + * @param {RegExp} [options.interpolate] The "interpolate" delimiter. + * @param {string} [options.sourceURL] The sourceURL of the template's compiled source. + * @param {string} [options.variable] The data object variable name. + * @param- {Object} [otherOptions] Enables the legacy `options` param signature. + * @returns {Function} Returns the compiled template function. + * @example + * + * // using the "interpolate" delimiter to create a compiled template + * var compiled = _.template('hello <%= user %>!'); + * compiled({ 'user': 'fred' }); + * // => 'hello fred!' + * + * // using the HTML "escape" delimiter to escape data property values + * var compiled = _.template('<%- value %>'); + * compiled({ 'value': '