PageRenderTime 979ms queryTime 80ms sortTime 2ms getByIdsTime 402ms findMatchingLines 422ms

100+ results results for 'underscore.js template repo:iwatchallit/towtruck' (979 ms)

Not the results you expected?
models.html https://bitbucket.org/forcreation/django-categories.git | HTML | 252 lines
                    
21    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
22    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
23    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
50<li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a></li>
                    
51<li class="toctree-l1"><a class="reference internal" href="../usage.html">Using categories in templates</a></li>
                    
52<li class="toctree-l1"><a class="reference internal" href="../registering_models.html">Registering Models</a></li>
                    
58<li class="toctree-l2"><a class="reference internal" href="settings.html">Settings</a></li>
                    
59<li class="toctree-l2"><a class="reference internal" href="templatetags.html">Template tags and filters</a></li>
                    
60</ul>
                    
                
timestamp.html https://github.com/yiminghe/kissyteam.github.com.git | HTML | 294 lines
                    
24</script>
                    
25    <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script> 
                    
26<script>
                    
67<li class="toctree-l3"><a class="reference internal" href="../swf/index.html">swf</a></li>
                    
68<li class="toctree-l3"><a class="reference internal" href="../xtemplate/index.html">xtemplate</a></li>
                    
69</ul>
                    
                
underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 426 lines
                    
1// Underscore.js
                    
2// (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
                    
391  
                    
392  // Run Underscore.js in noConflict mode, returning the '_' variable to its
                    
393  // previous owner. Returns a reference to the Underscore object.
                    
407  // "Secrets of the Javascript Ninja", page 83.
                    
408  template : function(str, data) {
                    
409    var fn = new Function('obj', 
                    
                
escapeHTML.html https://github.com/kissyteam/kissyteam.github.com.git | HTML | 263 lines
                    
24</script>
                    
25    <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script> 
                    
26<script>
                    
85        <li><a href="../mvc/index.html">mvc</a></li>
                    
86        <li><a href="../xtemplate/index.html">xtemplate</a></li>
                    
87    </ul>
                    
                
deployment.html https://bitbucket.org/vegansk/test_qooxdoo.git | HTML | 315 lines
                    
71    </nav>
                    
72    <script type="template" id="search-options-template">
                    
73      <select>
                    
79    </script>
                    
80    <script type="template" id="search-site-template">
                    
81      <form action="http://qooxdoo.org/" id="search-form">
                    
85    </script>
                    
86    <script type="template" id="search-blog-template">
                    
87      <form method="get" id="searchform" action="http://news.qooxdoo.org/" id="search-form">
                    
90    </script>
                    
91    <script type="template" id="search-manual-template">
                    
92      <form action="../../search.html" id="search-form">
                    
95    </script>
                    
96    <script type="template" id="search-bugs-template">
                    
97      <form action="http://bugs.qooxdoo.org/buglist.cgi" id="search-form">
                    
                
strike-through.html https://github.com/kissyteam/kissyteam.github.com.git | HTML | 266 lines
                    
24</script>
                    
25    <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script> 
                    
26<script>
                    
85        <li><a href="../../mvc/index.html">mvc</a></li>
                    
86        <li><a href="../../xtemplate/index.html">xtemplate</a></li>
                    
87    </ul>
                    
                
grunt.js https://bitbucket.org/kqdtran/latex2html5.git | JavaScript | 191 lines
                    
32    // The jst task compiles all application templates into JavaScript
                    
33    // functions with the underscore.js template function from 1.2.4.  You can
                    
34    // change the namespace and the template options, by reading this:
                    
39    jst: {
                    
40      "dist/debug/templates.js": [
                    
41        "app/modules/**/*.html"
                    
44
                    
45    // The handlebars task compiles all application templates into JavaScript
                    
46    // functions using Handlebars templating engine.
                    
53    handlebars: {
                    
54      "dist/debug/templates.js": ["app/templates/**/*.html"]
                    
55    },
                    
57    // The concatenate task is used here to merge the almond require/define
                    
58    // shim and the templates into the application code.  It's named
                    
59    // dist/debug/require.js, because we want to only load one script file in
                    
                
template-micro-debug.js https://bitbucket.org/kudutest/moodlegit.git | JavaScript | 250 lines
                    
6/**
                    
7Adds the `Y.Template.Micro` template engine, which provides fast, simple
                    
8string-based micro-templating similar to ERB or Underscore templates.
                    
23
                    
24// This code was heavily inspired by Underscore.js's _.template() method
                    
25// (written by Jeremy Ashkenas), which was in turn inspired by John Resig's
                    
98        // Compile the template into a function.
                    
99        var compiled = Y.Template.Micro.compile(template);
                    
100
                    
108@method compile
                    
109@param {String} text Template text to compile.
                    
110@param {Object} [options] Options. If specified, these options will override the
                    
230/**
                    
231Revives a precompiled template function into a normal compiled template function
                    
232that can be called to render the template. The precompiled function must already
                    
                
generate.php https://bitbucket.org/Maron1/taqman.git | PHP | 854 lines
                    
47        'backbone.js' => 'http://backbonejs.org/backbone.js',
                    
48        'underscore.js' => 'http://underscorejs.org/underscore.js',
                    
49        'handlebars.js' => 'http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.rc.1.js',
                    
118        // Begin building up the file's content
                    
119        Template::new_class($class_name . '_Controller', 'Base_Controller');
                    
120
                    
133                list($method, $verb) = explode(':', $method);
                    
134                $content .= Template::func("{$verb}_{$method}");
                    
135            } else {
                    
137
                    
138                $content .= Template::func("{$action}_{$method}");
                    
139            }
                    
170        // Begin building up the file's content
                    
171        Template::new_class($class_name, 'Eloquent' );
                    
172        $this->prettify();
                    
                
index.js https://gitlab.com/sheep-fish-vert/geon | JavaScript | 216 lines
                    
13    reInterpolate = require('lodash._reinterpolate'),
                    
14    templateSettings = require('lodash.templatesettings'),
                    
15    values = require('lodash.values');
                    
25 */
                    
26var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
27
                    
54 * @param {RegExp} [options.evaluate] The "evaluate" delimiter.
                    
55 * @param {Object} [options.imports] An object to import into the template as local variables.
                    
56 * @param {RegExp} [options.interpolate] The "interpolate" delimiter.
                    
81 * // using the internal `print` function in "evaluate" delimiters
                    
82 * _.template('<% print("hello " + name); %>!', { 'name': 'barney' });
                    
83 * // => 'hello barney!'
                    
124  // https://github.com/olado/doT
                    
125  var settings = templateSettings.imports._.templateSettings || templateSettings;
                    
126  text = String(text || '');
                    
                
index.js https://gitlab.com/boxnia/NFU_MOVIL | JavaScript | 1514 lines
                    
5 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
75
                    
76  /** Used to match empty string literals in compiled template source. */
                    
77  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
86
                    
87  /** Used to match template delimiters. */
                    
88  var reEscape = /<%-([\s\S]+?)%>/g,
                    
109
                    
110  /** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */
                    
111  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
127
                    
128  /** Used to ensure capturing order of template delimiters. */
                    
129  var reNoMatch = /($^)/;
                    
                
lodash.underscore.js https://gitlab.com/boxnia/NFU_MOVIL | JavaScript | 1626 lines
                    
3 * Lo-Dash 1.0.2 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
39
                    
40  /** Used to match empty string literals in compiled template source */
                    
41  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
55  /**
                    
56   * Used to match ES6 template delimiters
                    
57   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
58   */
                    
59  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
60
                    
                
lodash.compat.js https://gitlab.com/boxnia/NFU_MOVIL | JavaScript | 1530 lines
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
42
                    
43  /** Used to match empty string literals in compiled template source */
                    
44  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
58  /**
                    
59   * Used to match ES6 template delimiters
                    
60   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
61   */
                    
62  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
63
                    
63
                    
64  /** Used to match "interpolate" template delimiters */
                    
65  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
                
lodash.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1478 lines
                    
5 * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
98
                    
99  /** Used to match empty string literals in compiled template source. */
                    
100  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
109
                    
110  /** Used to match template delimiters. */
                    
111  var reEscape = /<%-([\s\S]+?)%>/g,
                    
131
                    
132  /** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */
                    
133  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
158
                    
159  /** Used to ensure capturing order of template delimiters. */
                    
160  var reNoMatch = /($^)/;
                    
                
lodash.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1517 lines
                    
5 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
73
                    
74  /** Used to match empty string literals in compiled template source. */
                    
75  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
84
                    
85  /** Used to match template delimiters. */
                    
86  var reEscape = /<%-([\s\S]+?)%>/g,
                    
108
                    
109  /** Used to match [ES template delimiters](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components). */
                    
110  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
126
                    
127  /** Used to ensure capturing order of template delimiters. */
                    
128  var reNoMatch = /($^)/;
                    
                
lodash.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1522 lines
                    
5 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
73
                    
74  /** Used to match empty string literals in compiled template source. */
                    
75  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
84
                    
85  /** Used to match template delimiters. */
                    
86  var reEscape = /<%-([\s\S]+?)%>/g,
                    
95  /**
                    
96   * Used to match [ES template delimiters](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components).
                    
97   */
                    
97   */
                    
98  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
99
                    
                
lodash.compat.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1489 lines
                    
5 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
73
                    
74  /** Used to match empty string literals in compiled template source. */
                    
75  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
84
                    
85  /** Used to match template delimiters. */
                    
86  var reEscape = /<%-([\s\S]+?)%>/g,
                    
90  /**
                    
91   * Used to match ES template delimiters.
                    
92   * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components)
                    
94   */
                    
95  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
96
                    
                
lodash.compat.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1494 lines
                    
5 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
73
                    
74  /** Used to match empty string literals in compiled template source. */
                    
75  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
84
                    
85  /** Used to match template delimiters. */
                    
86  var reEscape = /<%-([\s\S]+?)%>/g,
                    
90  /**
                    
91   * Used to match ES template delimiters.
                    
92   * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components)
                    
94   */
                    
95  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
96
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1646 lines
                    
3 * Lo-Dash 2.4.2 (Custom Build) <https://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
144  /**
                    
145   * Used by `template` to escape characters for inclusion in compiled
                    
146   * string literals.
                    
                
lodash.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1522 lines
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
42
                    
43  /** Used to match empty string literals in compiled template source */
                    
44  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
48  /**
                    
49   * Used to match ES6 template delimiters
                    
50   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-string-literals
                    
51   */
                    
52  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
53
                    
59
                    
60  /** Used to match "interpolate" template delimiters */
                    
61  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1646 lines
                    
3 * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
144  /**
                    
145   * Used by `template` to escape characters for inclusion in compiled
                    
146   * string literals.
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1650 lines
                    
3 * Lo-Dash 2.4.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
144  /**
                    
145   * Used by `template` to escape characters for inclusion in compiled
                    
146   * string literals.
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1648 lines
                    
3 * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
137  /**
                    
138   * Used by `template` to escape characters for inclusion in compiled
                    
139   * string literals.
                    
                
lodash.compat.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1503 lines
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
45
                    
46  /** Used to match empty string literals in compiled template source */
                    
47  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
51  /**
                    
52   * Used to match ES6 template delimiters
                    
53   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
54   */
                    
55  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
56
                    
62
                    
63  /** Used to match "interpolate" template delimiters */
                    
64  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1649 lines
                    
3 * Lo-Dash 2.2.1 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
137  /**
                    
138   * Used by `template` to escape characters for inclusion in compiled
                    
139   * string literals.
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1650 lines
                    
3 * Lo-Dash 2.1.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
140  /**
                    
141   * Used by `template` to escape characters for inclusion in compiled
                    
142   * string literals.
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1651 lines
                    
3 * Lo-Dash 1.3.1 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
26
                    
27  /** Used to match empty string literals in compiled template source */
                    
28  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
35  /**
                    
36   * Used to match ES6 template delimiters
                    
37   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
38   */
                    
39  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
40
                    
                
lodash.underscore.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1626 lines
                    
3 * Lo-Dash 1.0.1 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
39
                    
40  /** Used to match empty string literals in compiled template source */
                    
41  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
55  /**
                    
56   * Used to match ES6 template delimiters
                    
57   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
58   */
                    
59  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
60
                    
                
lodash.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1515 lines
                    
62
                    
63  /** Used to ensure capturing order of template delimiters */
                    
64  var reNoMatch = /($^)/;
                    
282   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
283   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
284   * delimiters.
                    
289   */
                    
290  lodash.templateSettings = {
                    
291
                    
302     *
                    
303     * @memberOf _.templateSettings
                    
304     * @type RegExp
                    
350   */
                    
351  var iteratorTemplate = template(
                    
352    // the `iterable` may be reassigned by the `top` snippet
                    
                
template-micro-coverage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 318 lines
                    
25    calledFunctions: 0,
                    
26    path: "build/template-micro/template-micro.js",
                    
27    code: []
                    
28};
                    
29_yuitest_coverage["build/template-micro/template-micro.js"].code=["YUI.add('template-micro', function (Y, NAME) {","","/*jshint expr:true */","","/**","Adds the `Y.Template.Micro` template engine, which provides fast, simple","string-based micro-templating similar to ERB or Underscore templates.","","@module template","@submodule template-micro","@since 3.8.0","**/","","/**","Fast, simple string-based micro-templating engine similar to ERB or Underscore","templates.","","@class Template.Micro","@static","@since 3.8.0","**/","","// This code was heavily inspired by Underscore.js's _.template() method","// (written by Jeremy Ashkenas), which was in turn inspired by John Resig's","// micro-templating implementation.","","var Micro = Y.namespace('Template.Micro');","","/**","Default options for `Y.Template.Micro`.","","@property {Object} options","","    @param {RegExp} [options.code] Regex that matches code blocks like","        `<% ... %>`.","    @param {RegExp} [options.escapedOutput] Regex that matches escaped output","        tags like `<%= ... %>`.","    @param {RegExp} [options.rawOutput] Regex that matches raw output tags like","        `<%== ... %>`.","    @param {RegExp} [options.stringEscape] Regex that matches characters that","        need to be escaped inside single-quoted JavaScript string literals.","    @param {Object} [options.stringReplace] Hash that maps characters matched by","        `stringEscape` to the strings they should be replaced with. If you add","        a character to the `stringEscape` regex, you need to add it here too or","        it will be replaced with an empty string.","","@static","@since 3.8.0","**/","Micro.options = {","    code         : /<%([\\s\\S]+?)%>/g,","    escapedOutput: /<%=([\\s\\S]+?)%>/g,","    rawOutput    : /<%==([\\s\\S]+?)%>/g,","    stringEscape : /\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g,","","    stringReplace: {","        '\\\\'    : '\\\\\\\\',","        \"'\"     : \"\\\\'\",","        '\\r'    : '\\\\r',","        '\\n'    : '\\\\n',","        '\\t'    : '\\\\t',","        '\\u2028': '\\\\u2028',","        '\\u2029': '\\\\u2029'","    }","};","","/**","Compiles a template string into a JavaScript function. Pass a data object to the","function to render the template using the given data and get back a rendered","string.","","Within a template, use `<%= ... %>` to output the value of an expression (where","`...` is the JavaScript expression or data variable to evaluate). The output","will be HTML-escaped by default. To output a raw value without escaping, use","`<%== ... %>`, but be careful not to do this with untrusted user input.","","To execute arbitrary JavaScript code within the template without rendering its","output, use `<% ... %>`, where `...` is the code to be executed. This allows the","use of if/else blocks, loops, function calls, etc., although it's recommended","that you avoid embedding anything beyond basic flow control logic in your","templates.","","Properties of the data object passed to a template function are made available","on a `data` variable within the scope of the template. So, if you pass in","the object `{message: 'hello!'}`, you can print the value of the `message`","property using `<%= data.message %>`.","","@example","","    YUI().use('template-micro', function (Y) {","        var template = '<ul class=\"<%= data.classNames.list %>\">' +","                           '<% Y.Array.each(data.items, function (item) { %>' +","                               '<li><%= item %></li>' +","                           '<% }); %>' +","                       '</ul>';","","        // Compile the template into a function.","        var compiled = Y.Template.Micro.compile(template);","","        // Render the template to HTML, passing in the data to use.","        var html = compiled({","            classNames: {list: 'demo'},","            items     : ['one', 'two', 'three', 'four']","        });","    });","","@method compile","@param {String} text Template text to compile.","@param {Object} [options] Options. If specified, these options will override the","    default options defined in `Y.Template.Micro.options`. See the documentation","    for that property for details on which options are available.","@return {Function} Compiled template function. Execute this function and pass in","    a data object to render the template with the given data.","@static","@since 3.8.0","**/","Micro.compile = function (text, options) {","    /*jshint evil:true */","","    var blocks     = [],","        tokenClose = \"\\uffff\",","        tokenOpen  = \"\\ufffe\",","        source;","","    options = Y.merge(Micro.options, options);","","    // Parse the input text into a string of JavaScript code, with placeholders","    // for code blocks. Text outside of code blocks will be escaped for safe","    // usage within a double-quoted string literal.","    //","    // $b is a blank string, used to avoid creating lots of string objects.","    //","    // $v is a function that returns the supplied value if the value is truthy","    // or the number 0, or returns an empty string if the value is falsy and not","    // 0.","    //","    // $t is the template string.","    source = \"var $b='', $v=function (v){return v || v === 0 ? v : $b;}, $t='\" +","","        // U+FFFE and U+FFFF are guaranteed to represent non-characters, so no","        // valid UTF-8 string should ever contain them. That means we can freely","        // strip them out of the input text (just to be safe) and then use them","        // for our own nefarious purposes as token placeholders!","        //","        // See http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Noncharacters","        text.replace(/\\ufffe|\\uffff/g, '')","","        .replace(options.rawOutput, function (match, code) {","            return tokenOpen + (blocks.push(\"'+\\n$v(\" + code + \")+\\n'\") - 1) + tokenClose;","        })","","        .replace(options.escapedOutput, function (match, code) {","            return tokenOpen + (blocks.push(\"'+\\n$e($v(\" + code + \"))+\\n'\") - 1) + tokenClose;","        })","","        .replace(options.code, function (match, code) {","            return tokenOpen + (blocks.push(\"';\\n\" + code + \"\\n$t+='\") - 1) + tokenClose;","        })","","        .replace(options.stringEscape, function (match) {","            return options.stringReplace[match] || '';","        })","","        // Replace the token placeholders with code.","        .replace(/\\ufffe(\\d+)\\uffff/g, function (match, index) {","            return blocks[parseInt(index, 10)];","        })","","        // Remove noop string concatenations that have been left behind.","        .replace(/\\n\\$t\\+='';\\n/g, '\\n') +","","        \"';\\nreturn $t;\";","","    // If compile() was called from precompile(), return precompiled source.","    if (options.precompile) {","        return \"function (Y, $e, data) {\\n\" + source + \"\\n}\";","    }","","    // Otherwise, return an executable function.","    return this.revive(new Function('Y', '$e', 'data', source));","};","","/**","Precompiles the given template text into a string of JavaScript source code that","can be evaluated later in another context (or on another machine) to render the","template.","","A common use case is to precompile templates at build time or on the server,","then evaluate the code on the client to render a template. The client only needs","to revive and render the template, avoiding the work of the compilation step.","","@method precompile","@param {String} text Template text to precompile.","@param {Object} [options] Options. If specified, these options will override the","    default options defined in `Y.Template.Micro.options`. See the documentation","    for that property for details on which options are available.","@return {String} Source code for the precompiled template.","@static","@since 3.8.0","**/","Micro.precompile = function (text, options) {","    options || (options = {});","    options.precompile = true;","","    return this.compile(text, options);","};","","/**","Compiles and renders the given template text in a single step.","","This can be useful for single-use templates, but if you plan to render the same","template multiple times, it's much better to use `compile()` to compile it once,","then simply call the compiled function multiple times to avoid recompiling.","","@method render","@param {String} text Template text to render.","@param {Object} data Data to pass to the template.","@param {Object} [options] Options. If specified, these options will override the","    default options defined in `Y.Template.Micro.options`. See the documentation","    for that property for details on which options are available.","@return {String} Rendered result.","@static","@since 3.8.0","**/","Micro.render = function (text, data, options) {","    return this.compile(text, options)(data);","};","","/**","Revives a precompiled template function into a normal compiled template function","that can be called to render the template. The precompiled function must already","have been evaluated to a function -- you can't pass raw JavaScript code to","`revive()`.","","@method revive","@param {Function} precompiled Precompiled template function.","@return {Function} Revived template function, ready to be rendered.","@static","@since 3.8.0","**/","Micro.revive = function (precompiled) {","    return function (data) {","        data || (data = {});","        return precompiled.call(data, Y, Y.Escape.html, data);","    };","};","","","}, '@VERSION@', {\"requires\": [\"escape\"]});"];
                    
30_yuitest_coverage["build/template-micro/template-micro.js"].lines = {"1":0,"27":0,"50":0,"117":0,"120":0,"125":0,"138":0,"149":0,"153":0,"157":0,"161":0,"166":0,"175":0,"176":0,"180":0,"201":0,"202":0,"203":0,"205":0,"225":0,"226":0,"241":0,"242":0,"243":0,"244":0};
                    
30_yuitest_coverage["build/template-micro/template-micro.js"].lines = {"1":0,"27":0,"50":0,"117":0,"120":0,"125":0,"138":0,"149":0,"153":0,"157":0,"161":0,"166":0,"175":0,"176":0,"180":0,"201":0,"202":0,"203":0,"205":0,"225":0,"226":0,"241":0,"242":0,"243":0,"244":0};
                    
31_yuitest_coverage["build/template-micro/template-micro.js"].functions = {"(anonymous 2):148":0,"(anonymous 3):152":0,"(anonymous 4):156":0,"(anonymous 5):160":0,"(anonymous 6):165":0,"compile:117":0,"precompile:201":0,"render:225":0,"(anonymous 7):242":0,"revive:241":0,"(anonymous 1):1":0};
                    
32_yuitest_coverage["build/template-micro/template-micro.js"].coveredLines = 25;
                    
32_yuitest_coverage["build/template-micro/template-micro.js"].coveredLines = 25;
                    
33_yuitest_coverage["build/template-micro/template-micro.js"].coveredFunctions = 11;
                    
34_yuitest_coverline("build/template-micro/template-micro.js", 1);
                    
56
                    
57// This code was heavily inspired by Underscore.js's _.template() method
                    
58// (written by Jeremy Ashkenas), which was in turn inspired by John Resig's
                    
                
template-micro-coverage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 288 lines
                    
18}
                    
19_yuitest_coverage["build/template-micro/template-micro.js"] = {
                    
20    lines: {},
                    
28};
                    
29_yuitest_coverage["build/template-micro/template-micro.js"].code=["YUI.add('template-micro', function (Y, NAME) {","","/**","Adds the `Y.Template.Micro` template engine, which provides fast, simple","string-based micro-templating similar to ERB or Underscore templates.","","@module template","@submodule template-micro","@since 3.8.0","**/","","/**","Fast, simple string-based micro-templating engine similar to ERB or Underscore","templates.","","@class Template.Micro","@static","@since 3.8.0","**/","","// This code was heavily inspired by Underscore.js's _.template() method","// (written by Jeremy Ashkenas), which was in turn inspired by John Resig's","// micro-templating implementation.","","var Micro = Y.namespace('Template.Micro');","","/**","Default options for `Y.Template.Micro`.","","@property {Object} options","","    @param {RegExp} [options.code] Regex that matches code blocks like","        `<% ... %>`.","    @param {RegExp} [options.escapedOutput] Regex that matches escaped output","        tags like `<%= ... %>`.","    @param {RegExp} [options.rawOutput] Regex that matches raw output tags like","        `<%== ... %>`.","    @param {RegExp} [options.stringEscape] Regex that matches characters that","        need to be escaped inside single-quoted JavaScript string literals.","","@static","@since 3.8.0","**/","Micro.options = {","    code         : /<%([\\s\\S]+?)%>/g,","    escapedOutput: /<%=([\\s\\S]+?)%>/g,","    rawOutput    : /<%==([\\s\\S]+?)%>/g,","    stringEscape : /\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g","};","","/**","Compiles a template string into a JavaScript function. Pass a data object to the","function to render the template using the given data and get back a rendered","string.","","Within a template, use `<%= ... %>` to output the value of an expression (where","`...` is the JavaScript expression or data variable to evaluate). The output","will be HTML-escaped by default. To output a raw value without escaping, use","`<%== ... %>`, but be careful not to do this with untrusted user input.","","To execute arbitrary JavaScript code within the template without rendering its","output, use `<% ... %>`, where `...` is the code to be executed. This allows the","use of if/else blocks, loops, function calls, etc., although it's recommended","that you avoid embedding anything beyond basic flow control logic in your","templates.","","Properties of the data object passed to a template function are made available","on a `data` variable within the scope of the template. So, if you pass in","the object `{message: 'hello!'}`, you can print the value of the `message`","property using `<%= data.message %>`.","","@example","","    YUI().use('template-micro', function (Y) {","        var template = '<ul class=\"<%= data.classNames.list %>\">' +","                           '<% Y.Array.each(data.items, function (item) { %>' +","                               '<li><%= item %></li>' +","                           '<% }); %>' +","                       '</ul>';","","        // Compile the template into a function.","        var compiled = Y.Template.Micro.compile(template);","","        // Render the template to HTML, passing in the data to use.","        var html = compiled({","            classNames: {list: 'demo'},","            items     : ['one', 'two', 'three', 'four']","        });","    });","","@method compile","@param {String} text Template text to compile.","@param {Object} [options] Options. If specified, these options will override the","    default options defined in `Y.Template.Micro.options`. See the documentation","    for that property for details on which options are available.","@return {Function} Compiled template function. Execute this function and pass in","    a data object to render the template with the given data.","@static","@since 3.8.0","**/","Micro.compile = function (text, options) {","    var blocks     = [],","        tokenClose = \"\\uffff\",","        tokenOpen  = \"\\ufffe\",","        source;","","    options = Y.merge(Micro.options, options);","","    // Parse the input text into a string of JavaScript code, with placeholders","    // for code blocks. Text outside of code blocks will be escaped for safe","    // usage within a double-quoted string literal.","    source = \"var $b='',$t='\" +","","        // U+FFFE and U+FFFF are guaranteed to represent non-characters, so no","        // valid UTF-8 string should ever contain them. That means we can freely","        // strip them out of the input text (just to be safe) and then use them","        // for our own nefarious purposes as token placeholders!","        //","        // See http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Noncharacters","        text.replace(/\\ufffe|\\uffff/g, '')","","        .replace(options.rawOutput, function (match, code) {","            return tokenOpen + (blocks.push(\"'+\\n((\" + code + \")||$b)+\\n'\") - 1) + tokenClose;","        })","","        .replace(options.escapedOutput, function (match, code) {","            return tokenOpen + (blocks.push(\"'+\\n$e((\" + code + \")||$b)+\\n'\") - 1) + tokenClose;","        })","","        .replace(options.code, function (match, code) {","            return tokenOpen + (blocks.push(\"';\\n\" + code + \"\\n$t+='\") - 1) + tokenClose;","        })","","        .replace(options.stringEscape, \"\\\\$&\")","","        // Replace the token placeholders with code.","        .replace(/\\ufffe(\\d+)\\uffff/g, function (match, index) {","            return blocks[parseInt(index, 10)];","        })","","        // Remove noop string concatenations that have been left behind.","        .replace(/\\n\\$t\\+='';\\n/g, '\\n') +","","        \"';\\nreturn $t;\";","","    // If compile() was called from precompile(), return precompiled source.","    if (options.precompile) {","        return \"function (Y, $e, data) {\\n\" + source + \"\\n}\";","    }","","    // Otherwise, return an executable function.","    return this.revive(new Function('Y', '$e', 'data', source));","};","","/**","Precompiles the given template text into a string of JavaScript source code that","can be evaluated later in another context (or on another machine) to render the","template.","","A common use case is to precompile templates at build time or on the server,","then evaluate the code on the client to render a template. The client only needs","to revive and render the template, avoiding the work of the compilation step.","","@method precompile","@param {String} text Template text to precompile.","@param {Object} [options] Options. If specified, these options will override the","    default options defined in `Y.Template.Micro.options`. See the documentation","    for that property for details on which options are available.","@return {String} Source code for the precompiled template.","@static","@since 3.8.0","**/","Micro.precompile = function (text, options) {","    options || (options = {});","    options.precompile = true;","","    return this.compile(text, options);","};","","/**","Compiles and renders the given template text in a single step.","","This can be useful for single-use templates, but if you plan to render the same","template multiple times, it's much better to use `compile()` to compile it once,","then simply call the compiled function multiple times to avoid recompiling.","","@method render","@param {String} text Template text to render.","@param {Object} data Data to pass to the template.","@param {Object} [options] Options. If specified, these options will override the","    default options defined in `Y.Template.Micro.options`. See the documentation","    for that property for details on which options are available.","@return {String} Rendered result.","@static","@since 3.8.0","**/","Micro.render = function (text, data, options) {","    return this.compile(text, options)(data);","};","","/**","Revives a precompiled template function into a normal compiled template function","that can be called to render the template. The precompiled function must already","have been evaluated to a function -- you can't pass raw JavaScript code to","`revive()`.","","@method revive","@param {Function} precompiled Precompiled template function.","@return {Function} Revived template function, ready to be rendered.","@static","@since 3.8.0","**/","Micro.revive = function (precompiled) {","    return function (data) {","        data || (data = {});","        return precompiled.call(data, Y, Y.Escape.html, data);","    };","};","","","}, '@VERSION@', {\"requires\": [\"escape\"]});"];
                    
30_yuitest_coverage["build/template-micro/template-micro.js"].lines = {"1":0,"25":0,"44":0,"101":0,"102":0,"107":0,"112":0,"123":0,"127":0,"131":0,"138":0,"147":0,"148":0,"152":0,"173":0,"174":0,"175":0,"177":0,"197":0,"198":0,"213":0,"214":0,"215":0,"216":0};
                    
31_yuitest_coverage["build/template-micro/template-micro.js"].functions = {"(anonymous 2):122":0,"(anonymous 3):126":0,"(anonymous 4):130":0,"(anonymous 5):137":0,"compile:101":0,"precompile:173":0,"render:197":0,"(anonymous 6):214":0,"revive:213":0,"(anonymous 1):1":0};
                    
32_yuitest_coverage["build/template-micro/template-micro.js"].coveredLines = 24;
                    
33_yuitest_coverage["build/template-micro/template-micro.js"].coveredFunctions = 10;
                    
146
                    
147    _yuitest_coverline("build/template-micro/template-micro.js", 107);
                    
148options = Y.merge(Micro.options, options);
                    
152    // usage within a double-quoted string literal.
                    
153    _yuitest_coverline("build/template-micro/template-micro.js", 112);
                    
154source = "var $b='',$t='" +
                    
                
underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 463 lines
                    
1// Underscore.js
                    
2// (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
                    
417  
                    
418  // Run Underscore.js in noConflict mode, returning the '_' variable to its
                    
419  // previous owner. Returns a reference to the Underscore object.
                    
438  // "Secrets of the JavaScript Ninja", page 83.
                    
439  _.template = function(st
                    
                
underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 460 lines
                    
1// Underscore.js
                    
2// (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
                    
415  
                    
416  // Run Underscore.js in noConflict mode, returning the '_' variable to its
                    
417  // previous owner. Returns a reference to the Underscore object.
                    
431  // "Secrets of the Javascript Ninja", page 83.
                    
432  _.template = function(str, data) {
                    
433    var fn = new Function('obj', 
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1650 lines
                    
3 * Lo-Dash 2.2.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
137  /**
                    
138   * Used by `template` to escape characters for inclusion in compiled
                    
139   * string literals.
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1653 lines
                    
3 * Lo-Dash 2.0.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
23
                    
24  /** Used to match "interpolate" template delimiters */
                    
25  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
26
                    
27  /** Used to ensure capturing order of template delimiters */
                    
28  var reNoMatch = /($^)/;
                    
134  /**
                    
135   * Used by `template` to escape characters for inclusion in compiled
                    
136   * string literals.
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1651 lines
                    
3 * Lo-Dash 1.3.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
26
                    
27  /** Used to match empty string literals in compiled template source */
                    
28  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
35  /**
                    
36   * Used to match ES6 template delimiters
                    
37   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
38   */
                    
39  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
40
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1645 lines
                    
3 * Lo-Dash 1.2.1 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
38
                    
39  /** Used to match empty string literals in compiled template source */
                    
40  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
47  /**
                    
48   * Used to match ES6 template delimiters
                    
49   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
50   */
                    
51  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
52
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1651 lines
                    
3 * Lo-Dash 1.2.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
38
                    
39  /** Used to match empty string literals in compiled template source */
                    
40  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
47  /**
                    
48   * Used to match ES6 template delimiters
                    
49   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
50   */
                    
51  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
52
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1644 lines
                    
3 * Lo-Dash 1.1.1 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
32
                    
33  /** Used to match empty string literals in compiled template source */
                    
34  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
41  /**
                    
42   * Used to match ES6 template delimiters
                    
43   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
44   */
                    
45  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
46
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1641 lines
                    
3 * Lo-Dash 1.1.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
32
                    
33  /** Used to match empty string literals in compiled template source */
                    
34  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
41  /**
                    
42   * Used to match ES6 template delimiters
                    
43   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
44   */
                    
45  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
46
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1593 lines
                    
2 * Lo-Dash 1.0.0-rc.3 (Custom Build) <http://lodash.com>
                    
3 * Build: `lodash underscore -d -o ./lodash.underscore.js`
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
5 * Based on Underscore.js 1.4.3 <http://underscorejs.org>
                    
6 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
33
                    
34  /** Used to detect template delimiter values that require a with-statement */
                    
35  var reComplexDelimiter = /[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/;
                    
39
                    
40  /** Used to match empty string literals in compiled template source */
                    
41  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
47
                    
48  /** Used to insert the data object variable into compiled template source */
                    
49  var reInsertVariable = /(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g;
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1548 lines
                    
49
                    
50  /** Used to insert the data object variable into compiled template source */
                    
51  var reInsertVariable = /(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g;
                    
60  /**
                    
61   * Used to match ES6 template delimiters
                    
62   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
266   * `mixin`, `noConflict`, `pop`, `random`, `reduce`, `reduceRight`, `result`,
                    
267   * `shift`, `size`, `some`, `sortedIndex`, `template`, `unescape`, and `uniqueId`
                    
268   *
                    
331     * @static
                    
332     * @memberOf _.templateSettings
                    
333     * @type String
                    
346   */
                    
347  var iteratorTemplate = template(
                    
348    // conditional strict mode
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1626 lines
                    
2 * Lo-Dash 1.0.0-rc.2 (Custom Build) <http://lodash.com>
                    
3 * Build: `lodash underscore -d -o ./lodash.underscore.js`
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
5 * Based on Underscore.js 1.4.3 <http://underscorejs.org>
                    
6 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
33
                    
34  /** Used to detect template delimiter values that require a with-statement */
                    
35  var reComplexDelimiter = /[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/;
                    
39
                    
40  /** Used to match empty string literals in compiled template source */
                    
41  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
47
                    
48  /** Used to insert the data object variable into compiled template source */
                    
49  var reInsertVariable = /(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g;
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1605 lines
                    
35
                    
36  /** Used to detect template delimiter values that require a with-statement */
                    
37  var reComplexDelimiter = /[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/;
                    
60  /**
                    
61   * Used to match ES6 template delimiters
                    
62   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
84  /** Used to make template sourceURLs easier to identify */
                    
85  var templateCounter = 0;
                    
86
                    
266  /**
                    
267   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
268   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
341   */
                    
342  var iteratorTemplate = template(
                    
343    // conditional strict mode
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1622 lines
                    
2 * Lo-Dash 1.0.0-rc.1 (Custom Build) <http://lodash.com>
                    
3 * Build: `lodash underscore -d -o ./lodash.underscore.js`
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
5 * Based on Underscore.js 1.4.2 <http://underscorejs.org>
                    
6 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
33
                    
34  /** Used to detect template delimiter values that require a with-statement */
                    
35  var reComplexDelimiter = /[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/;
                    
39
                    
40  /** Used to match empty string literals in compiled template source */
                    
41  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
47
                    
48  /** Used to insert the data object variable into compiled template source */
                    
49  var reInsertVariable = /(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g;
                    
                
lodash.underscore.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1627 lines
                    
3 * Lo-Dash 1.0.0 (Custom Build) <http://lodash.com/>
                    
4 * Build: `lodash underscore -o ./dist/lodash.underscore.js`
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
36
                    
37  /** Used to match empty string literals in compiled template source */
                    
38  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
52  /**
                    
53   * Used to match ES6 template delimiters
                    
54   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
55   */
                    
56  var reEsTemplate = /\$\{((?:(?=\\?)\\?[\s\S])*?)\}/g;
                    
57
                    
                
lodash.compat.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1531 lines
                    
5 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
                    
7 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
                    
39
                    
40  /** Used to match empty string literals in compiled template source */
                    
41  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
55  /**
                    
56   * Used to match ES6 template delimiters
                    
57   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
58   */
                    
59  var reEsTemplate = /\$\{((?:(?=\\?)\\?[\s\S])*?)\}/g;
                    
60
                    
60
                    
61  /** Used to match "interpolate" template delimiters */
                    
62  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1541 lines
                    
3 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * Based on Underscore.js 1.4.2 <http://underscorejs.org>
                    
5 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
69
                    
70  /** Used to make template sourceURLs easier to identify */
                    
71  var templateCounter = 0;
                    
256   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
257   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
258   * delimiters.
                    
269     * @static
                    
270     * @memberOf _.templateSettings
                    
271     * @type RegExp
                    
311   */
                    
312  var iteratorTemplate = template(
                    
313    // conditional strict mode
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1547 lines
                    
3 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * Based on Underscore.js 1.4.1 <http://underscorejs.org>
                    
5 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
69
                    
70  /** Used to make template sourceURLs easier to identify */
                    
71  var templateCounter = 0;
                    
254   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
255   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
256   * delimiters.
                    
267     * @static
                    
268     * @memberOf _.templateSettings
                    
269     * @type RegExp
                    
309   */
                    
310  var iteratorTemplate = template(
                    
311    // conditional strict mode
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1544 lines
                    
3 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * Based on Underscore.js 1.4.0 <http://underscorejs.org>
                    
5 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
69
                    
70  /** Used to make template sourceURLs easier to identify */
                    
71  var templateCounter = 0;
                    
254   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
255   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
256   * delimiters.
                    
267     * @static
                    
268     * @memberOf _.templateSettings
                    
269     * @type RegExp
                    
309   */
                    
310  var iteratorTemplate = template(
                    
311    // conditional strict mode
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1516 lines
                    
25   * Used to match potentially incorrect data object references, like `obj.obj`,
                    
26   * in compiled templates. Assigned in `_.template`.
                    
27   */
                    
31   * Used to match "evaluate" delimiters, including internal delimiters,
                    
32   * in template text. Assigned in `_.template`.
                    
33   */
                    
97
                    
98  /** Used to replace template delimiters */
                    
99  var tokenHead = '__token',
                    
317  /**
                    
318   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
319   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
373   */
                    
374  var iteratorTemplate = template(
                    
375    // conditional strict mode
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1504 lines
                    
25   * Used to match potentially incorrect data object references, like `obj.obj`,
                    
26   * in compiled templates. Assigned in `_.template`.
                    
27   */
                    
31   * Used to match "evaluate" delimiters, including internal delimiters,
                    
32   * in template text. Assigned in `_.template`.
                    
33   */
                    
97
                    
98  /** Used to replace template delimiters */
                    
99  var token = '__token__';
                    
314  /**
                    
315   * By default, the template delimiters used by Lo-Dash are similar to those in
                    
316   * embedded Ruby (ERB). Change the following template settings to use alternative
                    
370   */
                    
371  var iteratorTemplate = template(
                    
372    // conditional strict mode
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1529 lines
                    
25   * Used to match potentially incorrect data object references, like `obj.obj`,
                    
26   * in compiled templates. Assigned in `_.template`.
                    
27   */
                    
31   * Used to match "evaluate" delimiters, including internal delimiters,
                    
32   * in template text. Assigned in `_.template`.
                    
33   */
                    
85
                    
86  /** Used to replace template delimiters */
                    
87  var token = '__token__';
                    
212  /**
                    
213   * By default, Lo-Dash uses embedded Ruby (ERB) style template delimiters,
                    
214   * change the following template settings to use alternative delimiters.
                    
267   */
                    
268  var iteratorTemplate = template(
                    
269    // conditional strict mode
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1530 lines
                    
25   * Used to match potentially incorrect data object references, like `obj.obj`,
                    
26   * in compiled templates. Assigned in `_.template`.
                    
27   */
                    
31   * Used to match "evaluate" delimiters, including internal delimiters,
                    
32   * in template text. Assigned in `_.template`.
                    
33   */
                    
85
                    
86  /** Used to replace template delimiters */
                    
87  var token = '__token__';
                    
212  /**
                    
213   * By default, Lo-Dash uses embedded Ruby (ERB) style template delimiters,
                    
214   * change the following template settings to use alternative delimiters.
                    
267   */
                    
268  var iteratorTemplate = template(
                    
269    // assign the `result` variable an initial value
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1534 lines
                    
25   * Used to match potentially incorrect data object references, like `obj.obj`,
                    
26   * in compiled templates. Assigned in `_.template`.
                    
27   */
                    
31   * Used to match "evaluate" delimiters, including internal delimiters,
                    
32   * in template text. Assigned in `_.template`.
                    
33   */
                    
88  /** Used to make template sourceURLs easier to identify */
                    
89  var templateCounter = 0;
                    
90
                    
93
                    
94  /** Used to store tokenized template text snippets */
                    
95  var tokenized = [];
                    
272   */
                    
273  var iteratorTemplate = template(
                    
274    // assign the `result` variable an initial value
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1595 lines
                    
48  /** Used to make template sourceURLs easier to identify */
                    
49  var templateCounter = 0;
                    
50
                    
167   */
                    
168  lodash.templateSettings = {
                    
169
                    
182     * @static
                    
183     * @memberOf _.templateSettings
                    
184     * @type RegExp
                    
191     * @static
                    
192     * @memberOf _.templateSettings
                    
193     * @type RegExp
                    
215   */
                    
216  var iteratorTemplate = template(
                    
217    // assign the `result` variable an initial value
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1611 lines
                    
48  /** Used to make template sourceURLs easier to identify */
                    
49  var templateCounter = 0;
                    
50
                    
50
                    
51  /** Used to replace template delimiters */
                    
52  var token = '__token__';
                    
53
                    
54  /** Used to store tokenized template text snippets */
                    
55  var tokenized = [];
                    
209   */
                    
210  var iteratorTemplate = template(
                    
211    // assign the `result` variable an initial value
                    
434        'stringClass, toString, undefined',
                    
435      '"use strict"; return function(' + args + ') {\n' + iteratorTemplate(data) + '\n}'
                    
436    );
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1579 lines
                    
50
                    
51  /** Used to replace template delimiters */
                    
52  var token = '__token__';
                    
53
                    
54  /** Used to store tokenized template text snippets */
                    
55  var tokenized = [];
                    
167     * @static
                    
168     * @memberOf _.templateSettings
                    
169     * @type RegExp
                    
209   */
                    
210  var iteratorTemplate = template(
                    
211    // assign the `result` variable an initial value
                    
458  /**
                    
459   * Used by `template()` to replace tokens with their corresponding code snippets.
                    
460   *
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1587 lines
                    
65
                    
66  /** Used to replace template delimiters */
                    
67  var token = '__token__';
                    
68
                    
69  /** Used to store tokenized template text snippets */
                    
70  var tokenized = [];
                    
175     * @static
                    
176     * @memberOf _.templateSettings
                    
177     * @type String
                    
190   */
                    
191  var iteratorTemplate = template(
                    
192    // assign the `result` variable an initial value
                    
465  /**
                    
466   * Used by `template()` to replace "escape" template delimiters with tokens.
                    
467   *
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1561 lines
                    
72
                    
73  /** Used to match the "escape" template delimiters */
                    
74  var reEscapeDelimiter = /<%-([\s\S]+?)%>/g;
                    
75
                    
76  /** Used to match the "evaluate" template delimiters */
                    
77  var reEvaluateDelimiter = /<%([\s\S]+?)%>/g;
                    
78
                    
79  /** Used to match the "interpolate" template delimiters */
                    
80  var reInterpolateDelimiter = /<%=([\s\S]+?)%>/g;
                    
89
                    
90  /** Used to match unescaped characters in template text */
                    
91  var reUnescaped = /['\n\r\t\u2028\u2029\\]/g;
                    
146   */
                    
147  var iteratorTemplate = template(
                    
148    // assign the `result` variable an initial value
                    
                
lodash.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1519 lines
                    
3 * Copyright 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * Based on Underscore.js 1.3.3, copyright 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
5 * <http://documentcloud.github.com/underscore>
                    
10
                    
11  /** Used to escape and unescape characters in templates */
                    
12  var escapes = {
                    
42  /**
                    
43   * Used for `templateSettings` properties such as `escape`, `evaluate`,
                    
44   * or `interpolate` with explicitly assigned falsey values to ensure no match
                    
336   * literals, so they may compiled into function bodies.
                    
337   * (Used for template interpolation, evaluation, or escaping)
                    
338   *
                    
                
index.html https://github.com/pfarmer/pfarmer.github.com.git | HTML | 239 lines
                    
25    <script type="text/javascript" src="../../../../../_static/jquery.js"></script>
                    
26    <script type="text/javascript" src="../../../../../_static/underscore.js"></script>
                    
27    <script type="text/javascript" src="../../../../../_static/doctools.js"></script>
                    
82<li><a class="reference internal" href="#update-the-logging-section-in-settings-py">2. Update the logging section in settings.py:</a></li>
                    
83<li><a class="reference internal" href="#make-sure-you-have-a-500-html-template-in-place">3. Make sure you have a 500.html template in place.</a></li>
                    
84<li><a class="reference internal" href="#the-added-bonus">4. The added bonus....</a></li>
                    
187</div>
                    
188<div class="section" id="make-sure-you-have-a-500-html-template-in-place">
                    
189<h2>3. Make sure you have a 500.html template in place.</h2>
                    
                
lodash.js https://gitlab.com/DGuedes/Angular2Playground | JavaScript | 1464 lines
                    
5 * Released under MIT license <https://lodash.com/license>
                    
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
7 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
99
                    
100  /** Used to match empty string literals in compiled template source. */
                    
101  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
110
                    
111  /** Used to match template delimiters. */
                    
112  var reEscape = /<%-([\s\S]+?)%>/g,
                    
140   * Used to match
                    
141   * [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components).
                    
142   */
                    
142   */
                    
143  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
144
                    
                
underscore.d.ts https://gitlab.com/iyulab/MvsWebSeed | TypeScript Typings | 1573 lines
                    
7	/**
                    
8	* underscore.js _.throttle options.
                    
9	**/
                    
23	/**
                    
24	* underscore.js template settings, set templateSettings or pass as an argument
                    
25	* to 'template()' to override defaults.
                    
26	**/
                    
27	interface TemplateSettings {
                    
28		/**
                    
                
backbone.marionette.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 1346 lines
                    
87    if (this.options && this.options.template){
                    
88      template = this.options.template;
                    
89    } else {
                    
123    target = target || {};
                    
124    var templateHelpers = this.templateHelpers;
                    
125    if (_.isFunction(templateHelpers)){
                    
216// A single item view implementation that contains code for rendering
                    
217// with underscore.js templates, serializing the view's model or collection,
                    
218// and calling several methods on extended views, such as `onRender`.
                    
227
                    
228  // Render the view, defaulting to underscore.js templates.
                    
229  // You can override this in your view definition to provide
                    
238    var data = this.serializeData();
                    
239    var template = this.getTemplate();
                    
240    var html = Marionette.Renderer.render(template, data);
                    
                
backbone.marionette.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 1066 lines
                    
87    } else {
                    
88      template = this.template;
                    
89    }
                    
194// A single item view implementation that contains code for rendering
                    
195// with underscore.js templates, serializing the view's model or collection,
                    
196// and calling several methods on extended views, such as `onRender`.
                    
211
                    
212  // Render the view, defaulting to underscore.js templates.
                    
213  // You can override this in your view definition to provide
                    
222    var data = this.serializeData();
                    
223    var template = this.getTemplate();
                    
224    var html = Marionette.Renderer.render(template, data);
                    
485
                    
486    var template = this.getTemplate();
                    
487    return Marione
                    
                
backbone.marionette.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 999 lines
                    
36      if (_.isFunction(template)){
                    
37        template  = template.call(this);
                    
38      }
                    
135  // A single item view implementation that contains code for rendering
                    
136  // with underscore.js templates, serializing the view's model or collection,
                    
137  // and calling several methods on extended views, such as `onRender`.
                    
156
                    
157    // Render the view, defaulting to underscore.js templates.
                    
158    // You can override this in your view definition.
                    
197    renderHtml: function(data) {
                    
198      var template = this.getTemplateSelector();
                    
199      return Marionette.Renderer.render(template, data);
                    
430
                    
431      var template = this.getTemplateSelector();
                    
432      return Marionette.Renderer.render(template, data);
                    
                
backbone.marionette.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 822 lines
                    
29      if (this.options && this.options.template){
                    
30        template = this.options.template;
                    
31      } else {
                    
31      } else {
                    
32        template = this.template;
                    
33      }
                    
62  // A single item view implementation that contains code for rendering
                    
63  // with underscore.js templates, serializing the view's model or collection,
                    
64  // and calling several methods on extended views, such as `onRender`.
                    
100
                    
101    // Render the view, defaulting to underscore.js templates.
                    
102    // You can override this in your view definition.
                    
355
                    
356      var template = this.getTemplateSelector();
                    
357      return Marionette.Renderer.render(template, data);
                    
                
utility.js https://gitlab.com/pidlisnyi/lisbon | JavaScript | 420 lines
                    
7    beforeEach: function() {
                    
8      templateSettings = _.clone(_.templateSettings);
                    
9    },
                    
11    afterEach: function() {
                    
12      _.templateSettings = templateSettings;
                    
13    }
                    
214
                    
215    var escapedCharsInJavascriptTemplate = _.template('<ul><% _.each(numbers.split("\\n"), function(item) { %><li><%= item %></li><% }) %></ul>');
                    
216    result = escapedCharsInJavascriptTemplate({numbers: 'one\ntwo\nthree\nfour'});
                    
254
                    
255    template = _.template('\n ' +
                    
256    '  <%\n ' +
                    
299
                    
300    var templateWithNull = _.template('a null undefined {{planet}}');
                    
301    assert.equal(templateWithNull({planet: 'world'}), 'a null undefined world', 'can handle missing escape and evaluate settings');
                    
                
20160711-django-logging.html https://github.com/pfarmer/pfarmer.github.com.git | HTML | 323 lines
                    
25    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
26    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
27    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
88<li><a class="reference internal" href="#if-you-are-using-celery-in-the-application">3. If you are using celery in the application.</a></li>
                    
89<li><a class="reference internal" href="#make-sure-you-have-a-500-html-template-in-place">4. Make sure you have a 500.html template in place.</a></li>
                    
90<li><a class="reference internal" href="#the-added-bonus">5. The added bonus....</a></li>
                    
                
changelog.html https://github.com/praekelt/jmbo-foundry.git | HTML | 782 lines
                    
23    <script type="text/javascript" src="_static/jquery.js"></script>
                    
24    <script type="text/javascript" src="_static/underscore.js"></script>
                    
25    <script type="text/javascript" src="_static/doctools.js"></script>
                    
65<ol class="arabic simple">
                    
66<li>Do not attempt to call photologue getters in template if image is not set.</li>
                    
67<li>Page editor now uses jQuery 1.10.2 and jQuery UI 1.10.4.</li>
                    
122<li>Up <cite>jmbo-post</cite> requirement to 0.4.</li>
                    
123<li>SEO improvements in templates.</li>
                    
124</ol>
                    
211<ol class="arabic simple">
                    
212<li>Fix template error in <cite>modelbase_list_item_ipod.html</cite>.</li>
                    
213</ol>
                    
218<li>Fix bug where it was possible for an event handler to change the default avatar during user registration.</li>
                    
219<li>Cache individual listing item templates.</li>
                    
220</ol>
                    
                
class.admin.php https://bitbucket.org/rossberenson/michael-karas.git | PHP | 811 lines
                    
11		
                    
12		// Add underscore template
                    
13		add_action( 'admin_footer', array( __CLASS__, 'addTemplate' ) );
                    
54			// Add javascript
                    
55			wp_enqueue_script( 'underscore', 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.3/underscore-min.js' , array(), '1.4.3' );
                    
56			wp_enqueue_script( 'sis_js', SIS_URL.'/js/sis.min.js', array( 'jquery', 'jquery-ui-button', 'jquery-ui-progressbar', 'underscore' ), SIS_VERSION );
                    
113
                    
114	public static function addTemplate() {
                    
115		global $pagenow;
                    
119		
                    
120		if( is_file( SIS_DIR.'/templates/admin-js.html' ) ) {
                    
121			include( SIS_DIR.'/templates/admin-js.html' );
                    
304	public function thumbnailRegenerate() {
                    
305		if( is_file( SIS_DIR.'/templates/options-media.php' ) ) {
                    
306			include( SIS_DIR.'/templates/options-media.php' );
                    
                
file_system_helper.html https://github.com/MarcinOS/librepy.git | HTML | 145 lines
                    
21    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
22    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
23    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
65<dt id="librepy.file_system_helper.generate_file_from_template">
                    
66<tt class="descclassname">librepy.file_system_helper.</tt><tt class="descname">generate_file_from_template</tt><big>(</big><em>path</em>, <em>template_name</em>, <em>context</em>, <em>render_method='xml'</em><big>)</big><a class="reference internal" href="../_modules/librepy/file_system_helper.html#generate_file_from_template"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#librepy.file_system_helper.generate_file_from_template" title="Permalink to this definition">¶</a></dt>
                    
67<dd><p>Generate file at given path using template and given context</p>
                    
73<li><strong>path</strong> &#8211; path where the file will be generated</li>
                    
74<li><strong>template_name</strong> &#8211; name of template which will be used to generate the file content.
                    
75It must be in templates dir configured in Genshi.</li>
                    
75It must be in templates dir configured in Genshi.</li>
                    
76<li><strong>context</strong> &#8211; dictionary containing values which will be injected into template slots</li>
                    
77<li><strong>render_method</strong> &#8211; document rendering method. See Genshi documentation.</li>
                    
                
sync.html https://github.com/yiminghe/kissyteam.github.com.git | HTML | 286 lines
                    
24</script>
                    
25    <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script> 
                    
26<script>
                    
85        <li><a href="index.html">mvc</a></li>
                    
86        <li><a href="../xtemplate/index.html">xtemplate</a></li>
                    
87    </ul>
                    
                
lex.js https://gitlab.com/nVySin/Mo_Grabber | JavaScript | 1843 lines
                    
31  RegExp: 9,
                    
32  TemplateHead: 10,
                    
33  TemplateMiddle: 11,
                    
33  TemplateMiddle: 11,
                    
34  TemplateTail: 12,
                    
35  NoSubstTemplate: 13
                    
39  Block: 1,
                    
40  Template: 2
                    
41};
                    
120  this.context = [];
                    
121  this.templateStarts = [];
                    
122
                    
179   * Subscribe to a token event. The API for this method is similar
                    
180   * Underscore.js i.e. you can subscribe to multiple events with
                    
181   * one call:
                    
                
lodash.underscore.js https://gitlab.com/nVySin/Mo_Grabber | JavaScript | 1643 lines
                    
2 * Lo-Dash 0.10.0 (Custom Build) <http://lodash.com>
                    
3 * Build: `lodash underscore -d -o ./lodash.underscore.js`
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
5 * Based on Underscore.js 1.4.2 <http://underscorejs.org>
                    
6 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
47  /**
                    
48   * Used to match ES6 template delimiters
                    
49   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
50   */
                    
51  var reEsTemplate = /\$\{((?:(?=\\?)\\?[\s\S])*?)}/g;
                    
52
                    
52
                    
53  /** Used to match "interpolate" template delimiters */
                    
54  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
                
README.markdown https://gitlab.com/nVySin/Mo_Grabber | Markdown | 668 lines
                    
11
                    
12As name states this an extension for [Underscore.js][u], but it can be used
                    
13independently from **_s**-global variable. But with Underscore.js you can
                    
40
                    
41**Integrate with Underscore.js**:
                    
42
                    
233
                    
234Supplant function was removed, use Underscore.js [template function][p].
                    
235
                    
235
                    
236[p]: http://documentcloud.github.com/underscore/#template
                    
237
                    
623
                    
624* Created integration test suite with underscore.js 1.1.4 (now it's absolutely compatible)
                    
625* Removed 'reverse' function, because this function override underscore.js 'reverse'
                    
                
lodash.underscore.js https://gitlab.com/nVySin/Mo_Grabber | JavaScript | 1629 lines
                    
3 * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
                    
4 * Based on Underscore.js 1.4.2 <http://underscorejs.org>
                    
5 * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
                    
46  /**
                    
47   * Used to match ES6 template delimiters
                    
48   * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
49   */
                    
50  var reEsTemplate = /\$\{((?:(?=\\?)\\?[\s\S])*?)}/g;
                    
51
                    
51
                    
52  /** Used to match "interpolate" template delimiters */
                    
53  var reInterpolate = /<%=([\s\S]+?)%>/g;
                    
54
                    
55  /** Used to ensure capturing order of template delimiters */
                    
56  var reNoMatch = /($^)/;
                    
                
mis_details.html https://gitlab.com/g66shivam/gstudio | HTML | 758 lines
                    
14  <script type="text/javascript" src="/static/ndf/bower_components/d3/d3.min.js"></script> <!-- checked -->
                    
15  <script type="text/javascript" src="/static/ndf/bower_components/underscore/underscore.js"></script> <!-- checked -->
                    
16  <script sync="text/javascript" src="/static/ndf/bower_components/FileSaver/FileSaver.js" ></script> <!-- checked -->
                    
91{% block body_content %} 
                    
92  {# template for showing apt_set_instance details #}
                    
93
                    
93
                    
94  {% if app_set_instance_template %}
                    
95
                    
374            <a class="close-reveal-modal" >&#215;</a>
                    
375        	  {% include "ndf/map_widget.html" with mode="read" source="custom_template_edit" %}
                    
376
                    
                
templatetags.html https://bitbucket.org/forcreation/django-categories.git | HTML | 393 lines
                    
8    
                    
9    <title>Template tags and filters &mdash; Django Categories v1.1 documentation</title>
                    
10    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
                    
21    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
22    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
23    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
32<div id="header">
                    
33	<div id="title"><h1>Template tags and filters</h1></div>
                    
34	<ul id="headerButtons">
                    
94  <div class="section" id="template-tags-and-filters">
                    
95<h1>Template tags and filters<a class="headerlink" href="#template-tags-and-filters" title="Permalink to this headline">¶</a></h1>
                    
96<div class="contents local topic" id="contents">
                    
109</li>
                    
110<li><a class="reference internal" href="#template-tags" id="id10">Template Tags</a><ul>
                    
111<li><a class="reference internal" href="#get-top-level-categories" id="id11"><tt class="docutils literal"><span class="pre">get_top_level_categories</span></tt></a></li>
                    
                
registering_models.html https://bitbucket.org/forcreation/django-categories.git | HTML | 249 lines
                    
21    <script type="text/javascript" src="_static/jquery.js"></script>
                    
22    <script type="text/javascript" src="_static/underscore.js"></script>
                    
23    <script type="text/javascript" src="_static/doctools.js"></script>
                    
25    <link rel="next" title="Adding the fields to the database" href="adding_the_fields.html" />
                    
26    <link rel="prev" title="Using categories in templates" href="usage.html" /> 
                    
27  </head>
                    
38			<div class="headerButton"><a href="adding_the_fields.html" title="Adding the fields to the database" accesskey="N">next</a></div>
                    
39			<div class="headerButton"><a href="usage.html" title="Using categories in templates" accesskey="P">previous</a></div>
                    
40		</li>
                    
49<li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>
                    
50<li class="toctree-l1"><a class="reference internal" href="usage.html">Using categories in templates</a></li>
                    
51<li class="toctree-l1 current"><a class="current reference internal" href="">Registering Models</a><ul>
                    
                
custom_categories.html https://bitbucket.org/forcreation/django-categories.git | HTML | 341 lines
                    
21    <script type="text/javascript" src="_static/jquery.js"></script>
                    
22    <script type="text/javascript" src="_static/underscore.js"></script>
                    
23    <script type="text/javascript" src="_static/doctools.js"></script>
                    
49<li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>
                    
50<li class="toctree-l1"><a class="reference internal" href="usage.html">Using categories in templates</a></li>
                    
51<li class="toctree-l1"><a class="reference internal" href="registering_models.html">Registering Models</a></li>
                    
                
upgrading.html https://github.com/wraithan/OpenEats.git | HTML | 303 lines
                    
22    <script type="text/javascript" src="_static/jquery.js"></script>
                    
23    <script type="text/javascript" src="_static/underscore.js"></script>
                    
24    <script type="text/javascript" src="_static/doctools.js"></script>
                    
84<p>Remove the following from the <em>context processors</em> section of the settings.py file:</p>
                    
85<div class="highlight-python"><div class="highlight"><pre><span class="s">&quot;grappelli.context_processors.admin_template_path&quot;</span><span class="p">,</span>
                    
86</pre></div>
                    
                
standard_library.html https://github.com/tris-sondon/scipy-lectures.github.com.git | HTML | 329 lines
                    
22    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
23    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
24    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
76<span class="go"> &#39;_static&#39;,</span>
                    
77<span class="go"> &#39;_templates&#39;,</span>
                    
78<span class="go"> &#39;basic_types.rst&#39;,</span>
                    
                
standard_library.html https://github.com/tris-sondon/scipy-lectures.github.com.git | HTML | 331 lines
                    
22    <script type="text/javascript" src="../../_static/jquery.js"></script>
                    
23    <script type="text/javascript" src="../../_static/underscore.js"></script>
                    
24    <script type="text/javascript" src="../../_static/doctools.js"></script>
                    
77<span class="go"> &#39;_static&#39;,</span>
                    
78<span class="go"> &#39;_templates&#39;,</span>
                    
79<span class="go"> &#39;basic_types.rst&#39;,</span>
                    
                
index.html https://github.com/xavierelopez/wordsinmusic.git | HTML | 1397 lines
                    
5  <meta http-equiv="X-UA-Compatible" content="chrome=1">
                    
6  <title>Underscore.js</title>
                    
7  <style>
                    
72
                    
73    <h1>Underscore.js</h1>
                    
74
                    
120      <tr>
                    
121        <td><a href="underscore.js">Development Version (1.1.7)</a></td>
                    
122        <td><i>28kb, Uncompressed with Comments</i></td>
                    
185      <a href="#mixin">mixin</a>, <a href="#uniqueId">uniqueId</a>, 
                    
186      <a href="#template">template</a></span>
                    
187    </p>
                    
                
html.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 1107 lines
                    
87    # This is a class attribute because it is mutated by Sphinx.add_javascript.
                    
88    script_files = ['_static/jquery.js', '_static/underscore.js',
                    
89                    '_static/doctools.js']
                    
107
                    
108        self.init_templates()
                    
109        self.init_highlighter()
                    
138
                    
139    def init_templates(self):
                    
140        Theme.init_themes(self.confdir, self.config.html_theme_path,
                    
144        self.theme_options = themeoptions.copy()
                    
145        self.create_template_bridge()
                    
146        self.templates.init(self, self.theme)
                    
202        if self.templates:
                    
203            template_mtime = self.templates.newest_template_mtime()
                    
204        else:
                    
                
README.md https://gitlab.com/dima-antonenko/projectX | Markdown | 701 lines
                    
29- [Configuration](https://github.com/kylestetz/CLNDR#some-configuration)
                    
30  - [Template Rendering Engine](https://github.com/kylestetz/CLNDR#template-rendering-engine)
                    
31  - [Internationalization](https://github.com/kylestetz/CLNDR#internationalization)
                    
31  - [Internationalization](https://github.com/kylestetz/CLNDR#internationalization)
                    
32  - [Underscore Template Delimiters](https://github.com/kylestetz/CLNDR#underscore-template-delimiters)
                    
33  - [Internet Explorer Issues](https://github.com/kylestetz/CLNDR#internet-explorer-issues)
                    
48
                    
49[jQuery](http://jquery.com/download/) and [Moment.js](http://momentjs.com/) are depended upon. By default CLNDR tries to use [Underscore.js](http://underscorejs.org/)'s `_.template()` function, however if you specify a custom rendering function (see documentation below) underscore will not be used at all.
                    
50
                    
76
                    
77CLNDR doesn't generate markup (well, it has some reasonable defaults, but that's an aside). Instead, CLNDR asks you to create a template and in return it supplies your template with a great set of objects that will get you up and running in a few lines.
                    
78
                    
147  // or pulled in as a string
                    
148  template: clndrTemplate,
                    
149
                    
                
web.rst https://gitlab.com/thanhchatvn/cloud-odoo | ReStructuredText | 1457 lines
                    
21    * jQuery_
                    
22    * `Underscore.js`_
                    
23
                    
82``oepetstore/static/xml/petstore.xml``
                    
83    Mostly empty, will hold :ref:`reference/qweb` templates
                    
84``oepetstore/static/js/petstore.js``
                    
                
themes.rst https://gitlab.com/thanhchatvn/cloud-odoo | ReStructuredText | 968 lines
                    
158
                    
159Almost every element and option that you create has to be placed inside a ``<template>`` tag, like in this example.
                    
160
                    
166      <h2 class="lead">And this is a subtitle</h2>
                    
167    </template>
                    
168
                    
170
                    
171   don't misunderstand what ``template`` means. A template tag only
                    
172   defines a piece of html code or options - but it does not
                    
338    </xpath>
                    
339  </template>
                    
340
                    
375Inside your *views* folder, create a **pages.xml** file and add the
                    
376default Odoo markup.  Inside ``<data>`` create a ``<template>`` tag, set the
                    
377``page`` attribute to ``True`` and add your code into it.
                    
                
CHANGELOG.md https://gitlab.com/jeaster12/fabby | Markdown | 367 lines
                    
4### Description
                    
5* Beautifier does not break PHP and Underscore.js templates
                    
6* Fix for SCSS pseudo classes and intperpolation/mixins
                    
16* No new line after selector in scss files ([#666](https://github.com/beautify-web/js-beautify/issues/666))
                    
17* using html-beautify on handlebars template deletes unclosed tag if on second line ([#623](https://github.com/beautify-web/js-beautify/issues/623))
                    
18* more Extra space after scss pseudo classes ([#557](https://github.com/beautify-web/js-beautify/issues/557))
                    
19* Unnecessary spaces in PHP code ([#490](https://github.com/beautify-web/js-beautify/issues/490))
                    
20* Some underscore.js template tags are broken ([#417](https://github.com/beautify-web/js-beautify/issues/417))
                    
21* Selective ignore using comments (feature request) ([#384](https://github.com/beautify-web/js-beautify/issues/384))
                    
149* New line added between each css declaration ([#523](https://github.com/beautify-web/js-beautify/issues/523))
                    
150* Kendo Template scripts get messed up! ([#516](https://github.com/beautify-web/js-beautify/issues/516))
                    
151* SyntaxError: Unexpected token ++ ([#514](https://github.com/beautify-web/js-beautify/issues/514))
                    
191* Improved indenting for statements (#289)
                    
192* Improved ES6 support - let, const, template strings, and "fat arrow"
                    
193* Support for non-ASCII characters in variable names (#305)
                    
                
index.html https://github.com/sigmonky/LivingRoom.git | HTML | 1395 lines
                    
5  <meta http-equiv="X-UA-Compatible" content="chrome=1">
                    
6  <title>Underscore.js</title>
                    
7  <style>
                    
72
                    
73    <h1>Underscore.js</h1>
                    
74
                    
120      <tr>
                    
121        <td><a href="underscore.js">Development Version (1.1.6)</a></td>
                    
122        <td><i>27kb, Uncompressed with Comments</i></td>
                    
184      <a href="#mixin">mixin</a>, <a href="#uniqueId">uniqueId</a>, 
                    
185      <a href="#template">template</a></span>
                    
186    </p>
                    
                
misadventure_part_iv.md https://github.com/fronx/homoiconic.git | Markdown | 163 lines
                    
7
                    
8[Misadventure][play] is a little game in the style of [Adventure][a]. Misadventure is written in Javascript and runs entirely in the browser. Misadventure is written in standard Model-View-Controller style, making heavy use of the [Faux][f] and [Backbone.js][b] libraries. In this series of posts I will give you a tour of Misadventure's [code][source], showing how it uses Faux to structure its routes and templates as well as how it uses Backbone.js to organize its models and interactive view code.
                    
9
                    
11
                    
12This is Part IV, wherein we'll do a double-take and talk about loading classes. In [Part I][pi], we had an introduction to the game and its controller, and in [Part II][pii], we looked at controller methods and a simple view-free template. In [Part III][piii], we dived into controller methods that wire models, collections, views, and templates together with a look at `controller.location(...)`
                    
13
                    
21    <script src="./javascripts/vendor/async.js"></script>
                    
22    <script src="./javascripts/vendor/documentcloud/underscore.js"></script>
                    
23    <script src="./javascripts/vendor/documentcloud/backbone.js"></script>
                    
                
ng-lodash.js https://gitlab.com/github-cloud-corporation/Dexter | JavaScript | 1040 lines
                    
5 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
7 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
31        var arrayBufferTag = '[object ArrayBuffer]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]';
                    
32        /** Used to match empty string literals in compiled template source. */
                    
33        var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
                    
35        var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g, reUnescapedHtml = /[&<>"'`]/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
                    
36        /** Used to match template delimiters. */
                    
37        var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g;
                    
49        var reEscapeChar = /\\(\\)?/g;
                    
50        /** Used to match [ES template delimiters](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components). */
                    
51        var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
59        var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;
                    
60        /** Used to ensure capturing order of template delimiters. */
                    
61        var reNoMatch = /($^)/;
                    
                
lodash.src.js https://gitlab.com/github-cloud-corporation/Dexter | JavaScript | 1293 lines
                    
4 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
                    
5 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
6 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
72
                    
73    /** Used to match empty string literals in compiled template source. */
                    
74    var reEmptyStringLeading = /\b__p \+= '';/g,
                    
83
                    
84    /** Used to match template delimiters. */
                    
85    var reEscape = /<%-([\s\S]+?)%>/g,
                    
107
                    
108    /** Used to match [ES template delimiters](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components). */
                    
109    var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
                    
122
                    
123    /** Used to ensure capturing order of template delimiters. */
                    
124    var reNoMatch = /($^)/;
                    
                
streamplugins.js https://github.com/andywenk/streamie.git | JavaScript | 442 lines
                    
6require.def("stream/streamplugins",
                    
7  ["stream/tweet", "stream/settings", "stream/twitterRestAPI", "stream/helpers", "stream/keyValueStore", "text!../templates/tweet.ejs.html"],
                    
8  function(tweetModule, settings, rest, helpers, keyValue, templateText) {
                    
26    
                    
27    var template = _.template(templateText);
                    
28    
                    
187
                    
188      // set the tweet template
                    
189      template: {
                    
190        func: function templatePlugin (tweet) {
                    
191          tweet.template = template;
                    
192          this();
                    
195      
                    
196      // render the template (the underscore.js way)
                    
197      renderTemplate: {
                    
                
facete-index.jsp https://github.com/GeoKnow/Facete.git | JavaServer Pages | 571 lines
                    
31        <script type="text/javascript" src="resources/lib/jquery-ui/1.10.2/ui/jquery-ui.js"></script>
                    
32        <script type="text/javascript" src="resources/lib/underscore/1.4.4/underscore.js"></script>
                    
33        <script type="text/javascript" src="resources/lib/underscore.string/current/dist/underscore.string.min.js"></script>
                    
40        <script type="text/javascript" src="resources/lib/open-layers/2.12/OpenLayers.js"></script>
                    
41        <script type="text/javascript" src="resources/lib/json-template/0.85/json-template.js"></script>
                    
42        <script type="text/javascript" src="resources/lib/RDFauthor/current/libraries/jquery.rdfquery.rdfa-1.0.js"></script>
                    
                
lodash.js https://github.com/jalchr/ravendb.git | JavaScript | 1636 lines
                    
35
                    
36	/** Used to detect template delimiter values that require a with-statement */
                    
37	var reComplexDelimiter = /[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/;
                    
60	/**
                    
61	 * Used to match ES6 template delimiters
                    
62	 * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6
                    
84	/** Used to make template sourceURLs easier to identify */
                    
85	var templateCounter = 0;
                    
86
                    
254	/**
                    
255	 * By default, the template delimiters used by Lo-Dash are similar to those in
                    
256	 * embedded Ruby (ERB). Change the following template settings to use alternative
                    
310	 */
                    
311	var iteratorTemplate = template(
                    
312	  // conditional strict mode
                    
                
index.html https://github.com/kanso/repository.git | HTML | 1425 lines
                    
5  <meta http-equiv="X-UA-Compatible" content="chrome=1">
                    
6  <title>Underscore.js</title>
                    
7  <style>
                    
80
                    
81    <h1>Underscore.js</h1>
                    
82
                    
128      <tr>
                    
129        <td><a href="underscore.js">Development Version (1.2.3)</a></td>
                    
130        <td><i>34kb, Uncompressed with Comments</i></td>
                    
194      <a href="#mixin">mixin</a>, <a href="#uniqueId">uniqueId</a>, 
                    
195      <a href="#escape">escape</a>, <a href="#template">template</a></span>
                    
196    </p>
                    
                
lodash.js https://gitlab.com/varunsonavne/node-hello | JavaScript | 1528 lines
                    
5 * Released under MIT license <https://lodash.com/license>
                    
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
                    
7 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
                    
22      FUNC_ERROR_TEXT = 'Expected a function',
                    
23      INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
                    
24
                    
127
                    
128  /** Used to match empty string literals in compiled template source. */
                    
129  var reEmptyStringLeading = /\b__p \+= '';/g,
                    
138
                    
139  /** Used to match template delimiters. */
                    
140  var reEscape = /<%-([\s\S]+?)%>/g,
                    
186   * Used to match
                    
187   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
                    
188   */
                    
                
getting_started.html https://bitbucket.org/vegansk/test_qooxdoo.git | HTML | 340 lines
                    
71    </nav>
                    
72    <script type="template" id="search-options-template">
                    
73      <select>
                    
79    </script>
                    
80    <script type="template" id="search-site-template">
                    
81      <form action="http://qooxdoo.org/" id="search-form">
                    
85    </script>
                    
86    <script type="template" id="search-blog-template">
                    
87      <form method="get" id="searchform" action="http://news.qooxdoo.org/" id="search-form">
                    
90    </script>
                    
91    <script type="template" id="search-manual-template">
                    
92      <form action="../search.html" id="search-form">
                    
95    </script>
                    
96    <script type="template" id="search-bugs-template">
                    
97      <form action="http://bugs.qooxdoo.org/buglist.cgi" id="search-form">
                    
                
strings.html https://bitbucket.org/thncr/manuals.git | HTML | 238 lines
                    
22    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
23    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
24    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
80string-specific methods described in the <a class="reference internal" href="stdtypes.html#string-methods"><em>String Methods</em></a> section.
                    
81To output formatted strings use template strings or the <tt class="docutils literal"><span class="pre">%</span></tt> operator
                    
82described in the <a class="reference internal" href="stdtypes.html#string-formatting"><em>String Formatting Operations</em></a> section. Also, see the
                    
93</li>
                    
94<li class="toctree-l2"><a class="reference internal" href="string.html#template-strings">7.1.4. Template strings</a></li>
                    
95<li class="toctree-l2"><a class="reference internal" href="string.html#string-functions">7.1.5. String functions</a></li>
                    
                
string.html https://bitbucket.org/thncr/manuals.git | HTML | 638 lines
                    
22    <script type="text/javascript" src="../_static/jquery.js"></script>
                    
23    <script type="text/javascript" src="../_static/underscore.js"></script>
                    
24    <script type="text/javascript" src="../_static/doctools.js"></script>
                    
84in the <a class="reference internal" href="stdtypes.html#string-methods"><em>String Methods</em></a> section. To output formatted strings use
                    
85template strings or the <tt class="docutils literal"><span class="pre">%</span></tt> operator described in the
                    
86<a class="reference internal" href="stdtypes.html#string-formatting"><em>String Formatting Operations</em></a> section. Also, see the <a class="reference internal" href="re.html#module-re" title="re: Regular expression operations."><tt class="xref py py-mod docutils literal"><span class="pre">re</span></tt></a> module for
                    
                
genindex-S.html https://bitbucket.org/thncr/manuals.git | HTML | 584 lines
                    
22    <script type="text/javascript" src="_static/jquery.js"></script>
                    
23    <script type="text/javascript" src="_static/underscore.js"></script>
                    
24    <script type="text/javascript" src="_static/doctools.js"></script>
                    
110    <dt><a href="library/rexec.html#rexec.RExec.s_unload">s_unload() (rexec.RExec method)</a></dt>
                    
111    <dt><a href="library/string.html#string.Template.safe_substitute">safe_substitute() (string.Template method)</a></dt>
                    
112    <dt><a href="library/configparser.html#ConfigParser.SafeConfigParser">SafeConfigParser (class in ConfigParser)</a></dt>
                    
                
 

Source

Language