100+ results for 'underscore.js template'

Not the results you expected?

index.js (https://github.com/triAGENS/ArangoDB.git) JavaScript · 278 lines

56 var _escape = require('./escape.js');

57 var _unescape = require('./unescape.js');

58 var templateSettings = require('./templateSettings.js');

59 var template = require('./template.js');

127 var mixin = require('./mixin.js');

128 require('./underscore-array-methods.js');

129 var underscore = require('./underscore.js');

130

131 // Named Exports

189 exports.escape = _escape;

190 exports.unescape = _unescape;

191 exports.templateSettings = templateSettings;

192 exports.template = template;

index.html (https://github.com/chrislkeller/nwsmkr.git) HTML · 97 lines

74

75 <!-- begin scripts -->

76 <script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.3/underscore-min.js"></script>

77 <script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/1.7.2/moment.min.js"></script>

78 <script src="http:////cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.rc.1/handlebars.min.js"></script>

81 <script src="static-files/scripts/libs/handlebars-ajax.js"></script>

82 <script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js"></script>

83 <script src="static-files/scripts/template-scripts.js"></script>

84 <script src="static-files/scripts/data-script.js"></script>

85 <!-- end scripts -->

sidebarProjectItemView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 121 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'menu-group-item',

18

19 template: 'SidebarProjectItem',

20

21 events: {

hamlet.coffee (https://github.com/strathmeyer/hamlet.js.git) CoffeeScript · 172 lines

1 # * Hamlet Html Templates for javascript. http://www.yesodweb.com/book/templates

2 # Re-uses some code from HTML Parser By John Resig (ejohn.org)

3 # * LICENSE: Mozilla Public License

4

5 # this one javascript function is _.template from underscore.js, MIT license

6 # remove escape and evaluate, just use interpolate

7 Hamlet = `function(str, data){

8 var c = Hamlet.templateSettings;

9 str = Hamlet.toHtml(str);

10 var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' +

25

26

27 Hamlet.templateSettings = {

28 interpolate : /\{\{([\s\S]+?)\}\}/g,

29 }

testbase.js (https://gitlab.com/gregtyka/server) JavaScript · 103 lines

42 this.writeScript(sharedPackagePath, "jquery-ui.js");

43 this.writeScript(basePath + "../../khan-exercises/utils/",

44 "underscore.js");

45 this.writeScript(sharedPackagePath, "backbone.js");

46 this.writeScript(sharedPackagePath, "handlebars.js");

47 this.writeScript(sharedPackagePath, "templates.js");

48 },

49

50 /**

51 * The list of templates that need to be loaded still.

52 */

53 outstandingTemplates: [],

Gruntfile.js (https://gitlab.com/ModioAB/kanban) JavaScript · 286 lines

90 {

91 flatten: true,

92 src: ['bower_components/angular-underscore/angular-underscore.js'],

93 dest: 'web/assets/js/angular-underscore.js',

96 {

97 flatten: true,

98 src: ['bower_components/underscore/underscore.js'],

99 dest: 'web/assets/js/underscore.js',

193 flatten: false,

194 expand: true,

195 cwd: 'bower_components/angular-foundation/template',

196 src: '**',

197 dest: 'web/template/',

base.html (https://github.com/jlongster/OMGBUGS.git) HTML · 85 lines

53 </div>

54

55 <div class="template file-bug-template">

56 <h2 class="title">File a bug</h2>

57 Component: <input type="text" name="component" />

58 </div>

59

60 <div class="template about-template">

61 <h2 class="title">About</h2>

62

71 </div>

72

73 <div class="template settings-template">

74 <h2 class="title">Settings</h2>

75

marionette.templatecache.md (https://bitbucket.org/juanpicado/hacker-news-reader.git) Markdown · 106 lines

58 // clear 2 of 3 templates from the cache

59 Backbone.Marionette.TemplateCache.clear("#my-template", "#this-template")

60 ```

61

83 // value of templateId

84 var myTemplate = myTemplateFunc(templateId);

85

86 // send the template back

94 `loadTemplate` to the `compileTemplate` function, which returns

95 an underscore.js compiled template function. When overriding `compileTemplate`

96 remember that it must return a function which takes an object of parameters and values

97 and returns a formatted HTML string.

98

99 ```js

100 Backbone.Marionette.TemplateCache.prototype.compileTemplate = function(rawTemplate) {

101 // use Handlebars.js to compile the template

custom.php (https://github.com/10layer/10Layer-CMS.git) PHP · 89 lines

5 <script type="text/javascript" src="/tlresources/file/js/queues/queues.js"></script>

6

7 <script type="text/template" id="content-template">

8 <div class="content">

9 <div class="content-tools">

32 </script>

33

34 <script type="text/template" id="filters-template">

35 <div class="option">

36 <div class="option_header"><%= label %></div>

38 <ul>

39 <% _.each(options, function(option) { %>

40 <%= _.template($("#filter-template").html(), option) %>

41 <% }); %>

42 </ul>

index.html (https://gitlab.com/prashanth-sams/protractortesting) HTML · 358 lines

38 </div>

39

40 <script type="text/template" id="template_statistics">

41 <div class="eight wide column">

42 <div class="ui stacked center aligned segment">

68 </script>

69

70 <script type="text/template" id="template_statistics_types">

71 <div class="sixteen wide column">

72 <% _.each(input, function(type, index) { %>

115 </script>

116

117 <script type="text/template" id="template_states">

118 <div class="sixteen wide column">

119 <div class="ui styled fluid accordion">

streamplugins.js (https://github.com/dotmaster/streamie.git) JavaScript · 215 lines

5

6 require.def("stream/streamplugins",

7 ["stream/tweet", "stream/twitterRestAPI", "stream/helpers", "text!../templates/tweet.ejs.html"],

8 function(tweetModule, rest, helpers, templateText) {

9 var template = _.template(templateText);

10

11 var Tweets = {};

59 name: "template",

60 func: function (tweet) {

61 tweet.template = template;

62 this();

63 }

64 },

65

66 // render the template (the underscore.js way)

67 renderTemplate: {

sightingIdentificationFormView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 170 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

18 className: 'form single sighting-identification-form',

19

20 template: 'SightingIdentificationForm',

21

22 regions: {

48

49 onShow: function () {

50 var sightingView = new SightingDetailsView({ model: this.sighting, className: 'observation-details', template: 'SightingFullDetails' });

51 this.sightingView = sightingView;

52 this.sightingSection.show(sightingView);

index.html (https://bitbucket.org/paulh/djamon.git) HTML · 100 lines

24 </script>

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>

28 <link rel="top" title="Djamon (Django Monitoring) 1 documentation" href="../index.html" />

49 <h1>All modules for which code is available</h1>

50 <ul><li><a href="monitor/models.html">monitor.models</a></li>

51 <li><a href="monitor/templatetags/number_suffix.html">monitor.templatetags.number_suffix</a></li>

52 <li><a href="monitor/templatetags/paginator.html">monitor.templatetags.paginator</a></li>

53 <li><a href="monitor/templatetags/readable_time.html">monitor.templatetags.readable_time</a></li>

54 <li><a href="monitor/views.html">monitor.views</a></li>

55 <li><a href="scripts/cronjob.html">scripts.cronjob</a></li>

projectDetailsView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 296 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

18 className: 'project double',

19

20 template: 'Project',

21

22 regions: {

home.html (https://github.com/meirish/backbone-intro.git) HTML · 163 lines

64 </div>

65

66 <script id="player-details" type="text/template">

67 <section class="track">

68 <img src="{{ icon }}"/>

72 </section>

73 </script>

74 <script id="rdio-obj" type="text/template">

75 {{#icon}}

76 <img src="{{ icon }}"/>

92 {{/canPlay}}

93 </script>

94 <script id="search-suggest" type="text/template">

95 <a href="#" class="go-to-search">See all search results</a>

96 </script>

create.html (https://github.com/bobbor/pckgr.io.git) HTML · 106 lines

30 </section>

31 </div>

32 <script type="text/template" id="basicStep-template">

33 <h4><%= title %></h4>

34 <form class="form">

69 </form>

70 </script>

71 <script type="text/template" id="result-template">

72 <h4><%= title %></h4>

73 <% for(var i = 0;i < data.length; i++) { %>

83 </script>

84 <script src="js/lib/jquery.js"></script>

85 <script src="js/lib/underscore.js"></script>

86 <script src="js/lib/backbone.js"></script>

87 <script>

homePrivateView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 229 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

18 className: 'home-private double',

19

20 template: 'HomePrivateIndex',

21

22 regions: {

Rakefile (https://github.com/cordoval/genghis.git) Rakefile · 162 lines

59 'src/js/jquery.tablesorter.js',

60 'src/js/bootstrap-modal.js',

61 'src/js/underscore.js',

62 'src/js/backbone.js',

63 'vendor/ace/ace-uncompressed.js',

107 packer = HtmlCompressor::HtmlCompressor.new

108 # include partials

109 templates = FileList['src/templates/partials/*.html.js'].map do |name|

110 {

111 :name => name.sub(/^src\/templates\/partials\/(.*)\.html\.js$/, '\1'),

142 file 'genghis.php' => include_files + asset_files do

143 File.open('genghis.php', 'w') do |file|

144 template = ERB.new(File.read('src/templates/genghis.php.erb'))

145

146 includes = include_files.map { |inc| ENV['NOCOMPRESS'] ? File.read(inc) : `php -w #{inc}` }

py-modindex.html (https://github.com/lincolnloop/django-activity-stream.git) HTML · 136 lines

24 </script>

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>

28 <link rel="top" title="Django Activity Stream 0.4.3 documentation" href="index.html" />

85 <td></td>

86 <td>&nbsp;&nbsp;&nbsp;

87 <a href="api.html#module-actstream.templatetags.activity_tags"><tt class="xref">actstream.templatetags.activity_tags</tt></a></td><td>

88 <em></em></td></tr>

89 <tr class="cg-1">

viewer-debug.html (https://github.com/benoist/document-viewer.git) HTML · 93 lines

43 <script src="public/javascripts/DV/vendor/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>

44 <script src="public/javascripts/DV/vendor/jquery.scrollTo-min.js" type="text/javascript"></script>

45 <script src="public/javascripts/DV/vendor/underscore.js" type="text/javascript"></script>

46 <script src="public/javascripts/DV/vendor/jquery.easing.compatibility.js" type="text/javascript"></script>

47 <script src="public/javascripts/DV/vendor/jquery.acceptInput.js" type="text/javascript"></script>

84 <script src="public/javascripts/DV/controllers/documentViewer.js" type="text/javascript"></script>

85 <script src="public/javascripts/DV/controllers/api.js" type="text/javascript"></script>

86 <script src="public/assets/templates.js" type="text/javascript"></script>

87

88 <script type="text/javascript">

customize-preview.js (https://gitlab.com/haque.mdmanzurul/wp-harpar-carolyn) JavaScript · 154 lines

6 * Returns a debounced version of the function.

7 *

8 * @todo Require Underscore.js for this file and retire this.

9 */

10 debounce = function( fn, delay, context ) {

128 // the color or image are set.

129 //

130 // See get_body_class() in /wp-includes/post-template.php

131 body.toggleClass( 'custom-background', !! ( color() || image() ) );

132

projectExploreView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 148 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'projects double',

18

19 template: 'ProjectExplore',

20

21 regions: {

post-compile.js (https://gitlab.com/CORP-RESELLER/amcharts-accessibility-plugin) JavaScript · 85 lines

6 var fs = require('fs');

7

8 /** The minimal license/copyright template */

9 var licenseTemplate = {

11 '/*!\n' +

12 ' Lo-Dash @VERSION lodash.com/license\n' +

13 ' Underscore.js 1.4.2 underscorejs.org/LICENSE\n' +

14 '*/',

15 'underscore':

16 '/*! Underscore.js @VERSION underscorejs.org/LICENSE */'

17 };

18

58 }

59 // add license

60 return licenseTemplate[/call\(this\);?$/.test(source) ? 'underscore' : 'lodash']

61 .replace('@VERSION', snippet[2]) + '\n;' + source;

62 }

readme.markdown (https://github.com/mcaprari/Minima.git) Markdown · 110 lines

84 * protected boards can be made available in readonly mode

85 * list name can be edited

86 * now using backbone.js and underscore.js templates

87 * optionally configure webapp root

88 * websockets friendly with proxies

userExploreView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 144 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'users double',

18

19 template: 'UserExplore',

20

21 regions: {

SpecRunner.html (https://gitlab.com/CodeYellowBV/backbone.marionette) HTML · 152 lines

58

59 <script src="node_modules/jquery/dist/jquery.js"></script>

60 <script src="node_modules/underscore/underscore.js"></script>

61 <script src="node_modules/backbone/backbone.js"></script>

62 <script src="node_modules/backbone.wreqr/lib/backbone.wreqr.js"></script>

76 <script src="src/error.js"></script>

77 <script src="src/renderer.js"></script>

78 <script src="src/template-cache.js"></script>

79 <script src="src/object.js"></script>

80 <script src="src/features.js"></script>

128 <script src="test/unit/on-attach.spec.js"></script>

129 <script src="test/unit/on-dom-refresh.spec.js"></script>

130 <script src="test/unit/precompiled-template-rendering.spec.js"></script>

131 <script src="test/unit/region-manager.spec.js"></script>

132 <script src="test/unit/region.build-region.spec.js"></script>

iteratorTemplate.js (https://gitlab.com/blocknotary/IonicInterviews) JavaScript · 109 lines

3 * Build: `lodash modularize exports="node" -o ./compat/`

4 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>

5 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>

6 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

7 * Available under MIT license <http://lodash.com/license>

10

11 /**

12 * The template used to create iterator functions.

13 *

14 * @private

16 * @returns {string} Returns the interpolated text.

17 */

18 var iteratorTemplate = function(obj) {

19

20 var __p = 'var index, iterable = ' +

accountUpdatePasswordFormView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 155 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'update-password single',

18

19 template: 'AccountUpdatePasswordForm',

20

21 events: {

app.js (https://github.com/dcinzona/streamie.git) JavaScript · 113 lines

2 * Main entry point for our app

3 * "start" method gets called by require.js when the initial dependencies are loaded.

4 * We always have require.js, jQuery and underscore.js everwhere

5 */

6

13 }

14 require.def("stream/app",

15 ["stream/tweetstream", "stream/tweet", "stream/streamplugins", "stream/initplugins", "stream/client", "stream/status", "/ext/underscore.js", "/ext/modernizr-1.5.js", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"],

16 function(tweetstream, tweetModule, streamPlugin, initPlugin, client, status) {

17

27 streamPlugin.conversations,

28 streamPlugin.mentions,

29 streamPlugin.template,

30 streamPlugin.htmlEncode,

31 streamPlugin.formatTweetText,

accountLoginView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 163 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

16 className: 'login single',

17

18 template: 'AccountLogin',

19

20 events: {

urlhandler.html (https://github.com/ethna/ethna.github.com.git) HTML · 117 lines

24 </script>

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>

28 <link rel="shortcut icon" href="../_static/favicon.ico"/>

43 <ul>

44 <li class="right" style="margin-right: 10px">

45 <a href="template.html" title="テンプレート"

46 accesskey="N">next</a></li>

47 <li class="right" >

58 title="previous chapter">AppManager</a></p>

59 <h4>Next topic</h4>

60 <p class="topless"><a href="template.html"

61 title="next chapter">テンプレート</a></p>

62 <h3>This Page</h3>

compileReadme.js (https://gitlab.com/pgksunilkumar/screencasts) JavaScript · 159 lines

24 projectFile = './project.json',

25

26 inputFile = './README_template.md',

27 outputFile = '../README.md',

28 outputJSONFile = './examples.json',

30 snapshotsPath = entryDir,

31 messageFile = '/message.txt',

32 entryTemplate = _.template(' * [Example <%= number %>](<%= url %>) - <%= message %>'),

33

34 // These files are not excluded from the example code viewer.

55 // Evaluate the README.md template.

56 output = _.template(template)(model);

57

58 // Write README.md

81 return {

82

83 // Apply the entry template to each example entry.

84 examples: entries.map(entryTemplate).join('\n')

README.rst (https://github.com/taiste/data-flow.git) ReStructuredText · 106 lines

74

75 * jQuery_

76 * Underscore.js_

77 * `Taiste underscore extensions`_

78

79 .. _Underscore.js: http://github.com/documentcloud/underscore/

80 .. _`Taiste underscore extensions`: http://github.com/taiste/underscore-extensions/

81 .. _jQuery: http://jquery.org

favouritesView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 151 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'favourites double',

18

19 template: 'FavouritesIndex',

20

21 regions: {

viewer-embed-debug.html (https://github.com/pombredanne/document-viewer.git) HTML · 127 lines

33 <script src="public/javascripts/DV/vendor/jquery-1.5.1.js" type="text/javascript"></script>

34 <script src="public/javascripts/DV/vendor/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>

35 <script src="public/javascripts/DV/vendor/underscore.js" type="text/javascript"></script>

36 <script src="public/javascripts/DV/vendor/jquery.acceptInput.js" type="text/javascript"></script>

37 <script src="public/javascripts/DV/vendor/jquery.placeholder.js" type="text/javascript"></script>

67 <script src="public/javascripts/DV/controllers/document_viewer.js" type="text/javascript"></script>

68 <script src="public/javascripts/DV/controllers/api.js" type="text/javascript"></script>

69 <script src="public/assets/templates.js" type="text/javascript"></script>

70

71 <div id="doc1" style="margin: 30px; float: left;">

README.md (https://github.com/ubermajestix/handlebars_routes.git) Markdown · 88 lines

18 //= handlebars_routes

19

20 The `link_to` helper uses [underscore.js](https://github.com/rweng/underscore-rails) templating and assumes you have put it into "mustache mode"

21

22 # Setup underscore's templating to use Mustache style templates

23 _.templateSettings =

24 interpolate: /\{\{(.+?)\}\}/g

25

31

32 I've added my Handlebars Helpers `router` and `link_to`. The `link_to` helper uses the `router` helper to create

33 links in Handlebars templates very much like creating links in Rails templates.

34

35 The `router` will traverse your object looking for the right attributes to put into the route. You could also use

55 }

56

57 And the template item/show.jst.hbs (notice the **triple-stache** around link_to).

58 `"item_product"` is the route that Rails provided. The list of routes

59 are stored in the `rails_routes` global javascript object. Take a look at

index.html (https://github.com/fr1n63/BankOfEnglandMPC.git) HTML · 72 lines

17 <script type="text/javascript" src="js/lib/raphael-min.js"></script>

18

19 <script type="text/javascript" src="js/lib/underscore.js"></script>

20 <script type="text/javascript" src="js/lib/backbone.js"></script>

21 <script type="text/javascript" src="js/lib/modernizr.custom.59021.js"></script>

40 $(document).ready(function()

41 {

42 $.ajax("templates/boe_mpc.html").success(function(response)

43 {

44 $("body").append(response);

Gruntfile.js (https://gitlab.com/mintwax/yigetooth) JavaScript · 197 lines

12 '// v<%= pkg.version %>\n' +

13 '//\n' +

14 '// Copyright (c)<%= grunt.template.today("yyyy") %> Derick Bailey, Muted Solutions, LLC.\n' +

15 '// Distributed under MIT license\n' +

16 '//\n' +

99 'public/javascripts/jquery.js',

100 'public/javascripts/json2.js',

101 'public/javascripts/underscore.js',

102 'public/javascripts/backbone.js',

103 'public/javascripts/backbone.babysitter.js',

108 src : '<%= jasmine.marionette.src %>',

109 options : {

110 template : require('grunt-template-jasmine-istanbul'),

111 templateOptions: {

135 'src/marionette.approuter.js',

136 'src/marionette.module.js',

137 'src/marionette.templatecache.js',

138 'src/marionette.renderer.js',

139 'src/marionette.callbacks.js'

api_template.md (https://bitbucket.org/jollyscience/grunt-init-templates.git) Markdown · 72 lines

3 # [The grunt API](api.md) / grunt.template

4

5 Underscore.js template processing and other template-related methods.

6

7 Template strings can be processed manually using the provided template functions. In addition, many tasks and helpers automatically expand `<% %>` style template strings specified inside the [grunt.js gruntfile](getting_started.md) when used as file paths and banners.

13 ### grunt.template.process <a name="grunt-template-process" href="#grunt-template-process" title="Link to this section">⚑</a>

14 Process an [Underscore.js template](http://underscorejs.org/#template) string. If `data` is omitted, the entire [config object](api_config.md) is used. Templates are processed recursively until there are no more templates to process.

15

16 Inside templates, the `grunt` object is exposed as `grunt` so that you can do things like `<%= grunt.template.today('yyyy') %>`. _Note that if the `data` object has a `grunt` property, it will prevent this from working._

35 ### grunt.template.delimiters <a name="grunt-template-delimiters" href="#grunt-template-delimiters" title="Link to this section">⚑</a>

36 Set [Underscore.js template](http://underscorejs.org/#template) delimiters manually, in case you need to use `grunt.utils._.template` manually. You probably won't need to call this, because you'll be using `grunt.template.process` which calls this internally.

37

38 If `mode` is omitted, `<% %>` style template delimiters will be used. If `mode` is "init", `{% %}` style template delimiters will be used (this is specifically used by the [init task](task_init.md)).

57 ```

58

59 ### grunt.template.today <a name="grunt-template-today" href="#grunt-template-today" title="Link to this section">⚑</a>

60 Format today's date using the [dateformat](https://github.com/felixge/node-dateformat) library.

61

index.html (https://github.com/Gazler/Underscore-Template-Loader.git) HTML · 92 lines

18 }

19 else {

20 callback(this.templates[templateName]);

21 }

22 },

23

24 addTemplate: function(templateName, data) {

25 this.templates[templateName] = data;

45 var templateVersion = localStorage.getItem("templateVersion");

46 if (templateVersion && templateVersion == this.templateVersion) {

47 var templates = localStorage.getItem("templates");

74 $('#load_remote_template').click(function() {

75 templateLoader.loadRemoteTemplate("test_template", "templates/test_template.txt", function(data) {

76 var compiled = _.template(data);

karma.conf.js (https://gitlab.com/pgksunilkumar/final) JavaScript · 90 lines

21 'bower_components/angular-schema-form/dist/schema-form.js',

22 'bower_components/angular-schema-form/dist/bootstrap-decorator.min.js',

23 'bower_components/angular-underscore.js',

24 'src/*.js',

25 'src/**/*.html',

51 return 'directives/decorators/bootstrap/uiselect/' + filepath.substr(4);

52 },

53 moduleName: 'templates'

54 },

55

sidebarUserProjectItemView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 154 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'menu-group-item',

18

19 template: 'SidebarUserProjectItem',

20

21 events: {

genindex.html (https://github.com/callowayproject/django-textvariation.git) HTML · 109 lines

20 </script>

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>

24 <link rel="top" title="django-textvariation v0.1 documentation" href="index.html" />

46 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>

47 <li class="toctree-l1"><a class="reference internal" href="variations_and_urls.html">Variations and URLs</a></li>

48 <li class="toctree-l1"><a class="reference internal" href="templates.html">Templates</a></li>

49 <li class="toctree-l1"><a class="reference internal" href="editing_one_dimension.html">Editing One Dimension</a></li>

50 <li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li>

accountRegisterView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 158 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

16 className: 'register single',

17

18 template: 'AccountRegister',

19

20 events: {

title_.html (https://github.com/buildwithaura/buildwithaura.github.com.git) HTML · 250 lines

9 <script src='http://cachedcommons.org/cache/prettify/1.0.0/javascripts/prettify-min.js' type='text/javascript'></script>

10 <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.2/jquery.min.js' type='text/javascript'></script>

11 <script src='../underscore.js?1312477557' type='text/javascript'></script>

12 <script id='proscribe-js' src='../proscribe.js?1312477557' type='text/javascript'></script>

13 </head>

159 </nav>

160 <nav>

161 <h4>Template helpers</h4>

162 <ul>

163 <li>

index.html (https://github.com/jeremyjbowers/panda.git) HTML · 86 lines

49 <script type="text/javascript" src="{{ STATIC_URL }}js/lib/jquery-1.6.4.js"></script>

50 <script type="text/javascript" src="{{ STATIC_URL }}js/lib/bootstrap-modal.js"></script>

51 <script type="text/javascript" src="{{ STATIC_URL }}js/lib/underscore.js"></script>

52 <script type="text/javascript" src="{{ STATIC_URL }}js/lib/backbone.js"></script>

53 <script type="text/javascript" src="{{ STATIC_URL }}js/lib/backbone-tastypie.js"></script>

58 {% endcompress %}

59

60 <script type="text/javascript" src="templates.js"></script>

61

62 {% compress js %}

application-debug.html.erb (https://bitbucket.org/h6165/seatfoo.git) Ruby HTML · 65 lines

7 <script src="/assets/jquery.js?body=1" type="text/javascript"></script>

8 <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>

9 <script src="/assets/underscore.js?body=1" type="text/javascript"></script>

10 <script src="/assets/backbone.js?body=1" type="text/javascript"></script>

11 <script src="/assets/seatfoo.js?body=1" type="text/javascript"></script>

12 <script src="/assets/templates/contact_persons/show.js?body=1" type="text/javascript"></script>

13 <script src="/assets/templates/details/show.js?body=1" type="text/javascript"></script>

14 <script src="/assets/templates/locations/address.js?body=1" type="text/javascript"></script>

15 <script src="/assets/templates/locations/areas.js?body=1" type="text/javascript"></script>

16 <script src="/assets/templates/locations/localities.js?body=1" type="text/javascript"></script>

17 <script src="/assets/templates/locations/mapping.js?body=1" type="text/javascript"></script>

index.html (https://bitbucket.org/Alex_PK/bb.git) HTML · 78 lines

31 </div>

32

33 <script type="text/template" id="item-template">

34 <div class="view">

35 <input class="toggle" type="checkbox" <%= completed ? 'checked="checked"' : '' %>>

40 </script>

41

42 <script type="text/template" id="stats-template">

43 <span id="todo-count">

44 <strong><%= remaining %></strong>

62

63 <script src="js/lib/jquery.js"></script>

64 <script src="js/lib/underscore.js"></script>

65 <script src="js/lib/backbone.js"></script>

66 <script src="js/lib/backbone.localStorage.js"></script>

index.html (https://bitbucket.org/bgreen7887/is322.git) HTML · 92 lines

52 <!-- Templates -->

53

54 <script type="text/template" id="item-template">

55 <div class="view">

56 <input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> />

61 </script>

62

63 <script type="text/template" id="stats-template">

64 <% if (done) { %>

65 <a id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a>

75 <!-- <script src="js/main.js"></script> -->

76 <script src="js/json2.js"></script>

77 <script src="js/underscore.js"></script>

78 <script src="js/backbone.js"></script>

79 <script src="js/backbone.localStorage.js"></script>

index.html (https://github.com/callowayproject/django-textvariation.git) HTML · 125 lines

20 </script>

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>

24 <link rel="top" title="django-textvariation v0.1 documentation" href="#" />

48 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>

49 <li class="toctree-l1"><a class="reference internal" href="variations_and_urls.html">Variations and URLs</a></li>

50 <li class="toctree-l1"><a class="reference internal" href="templates.html">Templates</a></li>

51 <li class="toctree-l1"><a class="reference internal" href="editing_one_dimension.html">Editing One Dimension</a></li>

52 <li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li>

89 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>

90 <li class="toctree-l1"><a class="reference internal" href="variations_and_urls.html">Variations and URLs</a></li>

91 <li class="toctree-l1"><a class="reference internal" href="templates.html">Templates</a></li>

92 <li class="toctree-l1"><a class="reference internal" href="editing_one_dimension.html">Editing One Dimension</a></li>

93 <li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li>

class-dpa-shortcodes.php (https://github.com/livinglab/openlab.git) PHP · 292 lines

213 $this->start();

214

215 dpa_get_template_part( 'content-leaderboard', 'widget' );

216

217 return $this->end();

228 $this->start();

229

230 dpa_get_template_part( 'form-redeem-code' );

231

232 return $this->end();

254

255 /**

256 * Display the "achievement unlocked" feedback template and return to ensure that post/page contents are displayed first.

257 *

258 * This function is redundant. The "feedback-achievement-unlocked" template has been removed from the plugin.

275 * Display the "achievement unlocked" javascript template and return to ensure that post/page contents are displayed first.

276 *

277 * Note: this is a JS template, not a HTML template. This template is wrapped inside <script> tags which will be used with

278 * underscore.js' _.template() method. It compiles these JS templates into functions that can be evaluated for rendering.

index.html (https://github.com/DjebbZ/Zepto-mobile.git) HTML · 82 lines

11 <script type="text/javascript" src="js/iscroll.js"></script>

12 <script type="text/javascript" src="js/zepto.js"></script>

13 <script type="text/javascript" src="js/underscore.js"></script>

14 <script type="text/javascript" src="js/backbone.js"></script>

15 <script type="text/javascript" src="js/swipeslide.js"></script>

17 <script type="text/javascript" src="js/script.js"></script>

18

19 <!-- Template for Index Page -->

20 <script type="text/html" id="indexView">

21 <h2>SwipeSlide gallery</h2>

60 </script>

61

62 <!-- Template for a dummy Page 2 -->

63 <script type="text/html" id="page2View">

64 <h2>Page 2</h2>

Gruntfile.js (https://github.com/openplans/shareabouts.git) JavaScript · 92 lines

13 files: {

14 '<%= dirs.dest %>/preload.js': ['<%= dirs.src %>/js/utils.js',

15 '<%= dirs.src %>/js/template-helpers.js'],

16 '<%= dirs.dest %>/app.js': ['<%= dirs.src %>/js/handlebars-helpers.js',

17 '<%= dirs.src %>/js/models.js',

44 distjs: {

45 files: {

46 '<%= dirs.dest %>/libs.min.js': ['<%= dirs.src %>/libs/underscore.js',

47 '<%= dirs.src %>/libs/backbone.js',

48 '<%= dirs.src %>/libs/backbone.marionette.js',

build.config.js (https://gitlab.com/bruce.ng/angularjs-lesson) JavaScript · 75 lines

15 * stuff in `src/`). These file paths are used in the configuration of

16 * build tasks. `js` is all project javascript, less tests. `ctpl` contains

17 * our reusable components' (`src/common`) template HTML files, while

18 * `atpl` contains the same, but for our app's code. `html` is just our

19 * main HTML file, `less` is our main stylesheet, and `unit` contains our

66 'vendor/angular/angular.js',

67 'vendor/angular-ui-router/release/angular-ui-router.js',

68 'vendor/lodash/dist/lodash.underscore.js'

69 ],

70 css: [

grunt.js (https://bitbucket.org/jollyscience/grunt-init-templates.git) JavaScript · 148 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:

38 // remove this, ensure concat is updated accordingly.

39 jst: {

40 "dist/debug/templates.js": [

41 "app/templates/**/*.html"

44

45 // The concatenate task is used here to merge the almond require/define

46 // shim and the templates into the application code. It's named

47 // dist/debug/require.js, because we want to only load one script file in

48 // index.html.

50 "dist/debug/require.js": [

51 "assets/js/libs/almond.js",

52 "dist/debug/templates.js",

53 "dist/debug/require.js"

54 ]

copyright-notice.js (https://github.com/cscheid/lux.git) JavaScript · 114 lines

16

17 // Lux depends, at least partially, on the following software libraries:

18 // - underscore.js

19 // - webgl-debug

20 // - webgl-utils

23

24 ////////////////////////////////////////////////////////////////////////////////

25 // BEGIN UNDERSCORE.JS NOTICE

26 //

27 // Underscore.js 1.1.7

33 // http://documentcloud.github.com/underscore

34 //

35 // END UNDERSCORE.JS NOTICE

36 ////////////////////////////////////////////////////////////////////////////////

37

createIterator.js (https://gitlab.com/blocknotary/IonicInterviews) JavaScript · 127 lines

3 * Build: `lodash modularize exports="node" -o ./compat/`

4 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>

5 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>

6 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

7 * Available under MIT license <http://lodash.com/license>

12 isArray = require('../objects/isArray'),

13 isString = require('../objects/isString'),

14 iteratorTemplate = require('./iteratorTemplate'),

15 objectTypes = require('./objectTypes');

16

32 stringClass = '[object String]';

33

34 /** Used as the data object for `iteratorTemplate` */

35 var iteratorData = {

36 'args': '',

viewer-mini-debug.html (https://github.com/pombredanne/document-viewer.git) HTML · 98 lines

32 <script src="public/javascripts/DV/vendor/jquery-1.5.1.js" type="text/javascript"></script>

33 <script src="public/javascripts/DV/vendor/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>

34 <script src="public/javascripts/DV/vendor/underscore.js" type="text/javascript"></script>

35 <script src="public/javascripts/DV/vendor/jquery.acceptInput.js" type="text/javascript"></script>

36 <script src="public/javascripts/DV/vendor/jquery.placeholder.js" type="text/javascript"></script>

66 <script src="public/javascripts/DV/controllers/document_viewer.js" type="text/javascript"></script>

67 <script src="public/javascripts/DV/controllers/api.js" type="text/javascript"></script>

68 <script src="public/assets/templates.js" type="text/javascript"></script>

69

70 </head>

assets.php (https://bitbucket.org/BlaVeN/weatherinfo.git) PHP · 106 lines

21 // Backbone

22 array('script', 'assets/backbone/json2.js', 'body', $i++),

23 array('script', 'assets/backbone/underscore.js', 'body', $i++),

24 array('script', 'assets/backbone/backbone.js', 'body', $i++),

25

47 // Backbone

48 array('script', 'assets/backbone/json2.js', 'body', $i++),

49 array('script', 'assets/backbone/underscore.js', 'body', $i++),

50 array('script', 'assets/backbone/backbone.js', 'body', $i++),

51

80 // Backbone

81 array('script', 'assets/backbone/json2.js', 'body', $i++),

82 array('script', 'assets/backbone/underscore.js', 'body', $i++),

83 array('script', 'assets/backbone/backbone.js', 'body', $i++),

84

Page.html (https://github.com/kengu/udig-platform.git) HTML · 76 lines

24 </script>

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>

28 <link rel="shortcut icon" href="_static/udig.ico"/>

29 <link rel="top" title="User Guide" href="index.html" />

30 <link rel="up" title="Concepts" href="Concepts.html" />

31 <link rel="next" title="Template" href="Template.html" />

32 <link rel="prev" title="Viewport" href="Viewport.html" />

33 </head>

58 <div class="toctree-wrapper compound">

59 <ul>

60 <li class="toctree-l1"><a class="reference internal" href="Template.html">Template</a></li>

61 </ul>

62 </div>

accountRequestPasswordUpdateFormView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 165 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

18 className: 'request-password-update single',

19

20 template: 'AccountRequestPasswordUpdateForm',

21

22 events: {

I18N.md (https://github.com/ozten/browserid.git) Markdown · 86 lines

22 These strings must be evaluated in the scope of a request, so we know which locale the user has.

23

24 In JavaScript or EJS templates use `gettext` or `ngettext`. If you need to do string interpolation, use the

25 [format](../lib/i18n.js) function, which is kind of like node.js' `util.format`, except crappier.

26

27 Using `_` is more idiomatic, but conflicts with `underscore.js` on the client side JS and EJS files.

28

29 Technically, you can alias `gettext` to `_` and use `util.format`, etc in node.js code - but for development consistency,

30 we should keep EJS templates looking similar, regardless of if they are evaluated client or server-side.

31

32 ## Variables

index.html (https://bitbucket.org/lfun/tuweb.git) HTML · 83 lines

19 <script src="js/vendor/handlebars.js"></script>

20 <script src="js/vendor/bootstrap.min.js"></script>

21 <script src="js/vendor/underscore.js"></script>

22 <script src="js/vendor/backbone.js"></script>

23 <script src="tmp/templates.js"></script>

54 <div class="hero-unit">

55 <h1 id='hello'>Hello,Lukas</h1>

56 <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>

57 <p><a href="#" class="btn btn-primary btn-large">Learn more &raquo;</a></p>

58 </div>

item-view.yaml (https://gitlab.com/CodeYellowBV/backbone.marionette) YAML · 169 lines

30 ```js

31 var MyItemView = Marionette.ItemView.extend({

32 template: '#some-item-template'

33 });

34

43 Serialize the model or collection for the view. If a model is found, the view's `serializeModel` is called. If a collection is found, each model in the collection is serialized by calling the view's `serializeCollection` and putting into an `items` array in the resulting data. If both are found, the model is used.

44

45 You can override the `serializeData` method in your own view definition, to provide custom serialization for your view's data. These serializations are then passed into the template function if one is set.

46

47 @api public

115 render:

116 description: |

117 Render the view, defaulting to underscore.js templates. You can override this in your view definition to provide a very specific rendering for your view.

118

119 In general, though, you should override the `Marionette.Renderer` object to change how Marionette renders views.

grunt.js (https://github.com/newshour/map_center.git) JavaScript · 181 lines

9 NODE_PORT: process.env.NODE_PORT || 8000,

10 banner: "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +

11 "<%= grunt.template.today('yyyy-mm-dd') %>\n" +

12 "<%= pkg.homepage ? '* ' + pkg.homepage + '\n' : '' %>" +

13 "* Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author %>; */"

26 ]

27 },

28 // Compile Underscore.js-compatable templates into JavaScript functions for

29 // run-time efficiency and simplified maintenance

30 jst: {

34 },

35 files: {

36 "backend/www/scripts/jst.js": "backend/templates/*.html"

37 }

38 }

index.html (https://bitbucket.org/ivanvpan/jquery-tagger.git) HTML · 114 lines

36 </head>

37 <body style="padding-top: 20px;">

38 <script type="text/template" id="tag-template">

39 <div class="tag" style="padding: 0 2px; background-color: #800; color: white; position: absolute">

40 <div class="text">

43 </div>

44 </script>

45 <script type="text/template" id="tag-edit-template">

46 <div class="tag-edit well well-small">

47 <h3 class="pull-left"><%= index %></h3>

61 </script>

62

63 <script type="text/template" id="output-template"> <div class="img-container" style="position:relative">

64 <img id="<%= imgId %>" src="<%= url %>"/>

65 </div>

activityItemView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 124 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/icanhaz/icanhaz.js" />

19 className: 'activity-item',

20

21 template: 'ActivityItem',

22

23 events: {

40

41 if (this.model.get('Type') === "sightingadded") {

42 detailsView = new SightingDetailsView({ className: 'observation-details', template: 'SightingFullDetails', model: new Sighting(this.model.get('ObservationAdded').Observation), isObservationActviityItem: true });

43 }

44

index.js (https://gitlab.com/nhanvu/cyber-duck) JavaScript · 77 lines

3 * Build: `lodash modularize exports="npm" -o ./`

4 * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>

5 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>

6 * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

7 * Available under MIT license <https://lodash.com/license>

10 reInterpolate = require('lodash._reinterpolate');

11

12 /** Used to match template delimiters. */

13 var reEscape = /<%-([\s\S]+?)%>/g,

14 reEvaluate = /<%([\s\S]+?)%>/g;

15

16 /**

17 * By default, the template delimiters used by lodash are like those in

18 * embedded Ruby (ERB). Change the following template settings to use

23 * @type Object

24 */

25 var templateSettings = {

26

27 /**

index.html (https://bitbucket.org/edwardstlouis/backbonepeep1.git) HTML · 130 lines

21 <script src="js/Tunes.js"></script>

22

23 <script type="text/template" id="library-template">

24 <h1>Music Library</h1>

25 <ul class="albums"></ul>

26 </script>

27

28 <script type="text/template" id="playlist-template">

29 <h1>Playlist</h1>

30 <nav>

38 </script>

39

40 <script type="text/template" id="album-template">

41 <button class="queue add"><img src="images/add.png"></button>

42 <button class="queue remove"><img src="images/remove.png"></button>

README.md (https://github.com/carljmosca/backbone-couchdb.git) Markdown · 102 lines

31

32 * [Backbone.js](https://github.com/documentcloud/backbone) (>= 0.5.1)

33 * [Underscore.js](https://github.com/documentcloud/underscore)

34 * [jquery.couch.js](https://github.com/apache/couchdb/blob/trunk/share/www/script/jquery.couch.js)

35 * [jQuery](http://www.jquery.com/)

89 -------------

90

91 [Erica](http://github.com/benoitc/erica) templates are supported. Simply

92 link the backbone-couchdb folder to ~/.erica/templates. Then you can

93 create an application using these templates:

94

95 $ erica create template=backbone appid=myappname

index.html (https://github.com/sidecut/ServiceStack.git) HTML · 94 lines

46 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

47 <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js" type="text/javascript"></script>

48 <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>

49 <script src="jiko.js" type="text/javascript"></script>

50 </head>

51 <body>

52 <script>

53 var template = jiko.loadFile("swagger-like-template.html");

54 var test = [];

55 function getRequest(url) {

71 test.push(data);

72 data.order = key;

73 placeholder.append(template.apiAccordion(data));

74 });

75 });

compileReadme.js (https://gitlab.com/pgksunilkumar/screencasts) JavaScript · 125 lines

1 // This script compiles README_template.md

2 // into README.md by

3 //

4 // * compiling metadata about examples

5 // * dynamically generating a markdown list of example entries

6 // * injecting the list into the template

7 //

8 // Created by Curran Kelleher 3/2/2014

28 snapshotRunURL = 'http://curran.github.io/screencasts/navigation/examples/code/',

29 messageFile = '/message.txt',

30 entryTemplate = _.template(' * [Example <%= number %>](<%= url %>) - ([run it!](<%= runUrl %>) | [index.html](<%= url %>/index.html)) - <%= message %>'),

31

32 // These files are not excluded from the example code viewer.

45 // Evaluate the README.md template.

46 output = _.template(template, model);

47

48 // Write README.md

control.php (https://github.com/livinglab/openlab.git) PHP · 212 lines

191

192 /**

193 * Outputs the Underscore.js template.

194 *

195 * @since 1.0.0

197 * @return void

198 */

199 protected function render_template() { ?>

200

201 <li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">

sightingExploreView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 151 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'sightings double',

18

19 template: 'SightingExplore',

20

21 regions: {

build.config.js (https://bitbucket.org/ianmayo/ianmayo.bitbucket.org.git) JavaScript · 78 lines

15 * stuff in `src/`). These file paths are used in the configuration of

16 * build tasks. `js` is all project javascript, less tests. `ctpl` contains

17 * our reusable components' (`src/common`) template HTML files, while

18 * `atpl` contains the same, but for our app's code. `html` is just our

19 * main HTML file, `less` is our main stylesheet, `unit` contains our

59 js: [

60 'vendor/jquery/jquery.js',

61 'vendor/underscore/underscore.js',

62 'vendor/angular/angular.js',

63 'vendor/angular-resource/angular-resource.js',

index.html (https://github.com/baspete/Split-Flap.git) HTML · 136 lines

25 </div>

26

27 <!-- rows will be placed here dynamically from #row_template -->

28 </div>

29 <!-- END CONTAINER -->

33 <!-- ROW TEMPLATE -->

34 <script type="text/template" id="row_template">

35 <div class="row">

36 <div class="group airline"> <!-- airline -->

88 </div>

89 </script>

90 <!-- END ROW TEMPLATE -->

91 <!-- ============================================ -->

92

116 plugin: 'arrivals', // Plugin to load

117 container: $('#board'), // Where in the DOM to put the board

118 template: $('#row_template'), // Where in the DOM to find the row template

119 numRows: 12, // number of rows

120

admin.html (https://bitbucket.org/gorkalauzirika/nodequiz.git) HTML · 120 lines

26 </article>

27 </body>

28 <script type="text/template" id="edit-question-template">

29 <form id="edit-question" class="form-horizontal">

30 <div class="control-group">

81 </form>

82 </script>

83 <script type="text/template" id="question-list-template">

84 <table class="table table-bordered">

85 <thead>

94 <tbody></tbody>

95 </script>

96 <script type="text/template" id="list-item-template">

97 <td><%- question %></td>

98 <td class="hide-phone <%= correct == "0" ? 'success' : '' %>"><%- choices[0] %></td>

index.html (https://bitbucket.org/gkarthik_92/cured3.git) HTML · 68 lines

25 </div>

26 </div>

27 <script id="JSONtemplate" type="text/template">

28 <td><span class="jsonview_name"><%= args.name %></span></td>

29 <td><span><button class="btn btn-link showattr" >Edit</button></span></td>

31 <td><textarea class="jsonview_data"><% print (args.jsondata); %></textarea></td>

32 </script>

33 <script id="Attrtemplate" type="text/template">

34 <td colspan="3">

35 <ul class="unstyled">

52 </td>

53 </script>

54 <script id="nodeTemplate" type="text/template">

55 <span class="name attrvalue">

56 <%= name %>

index.html (https://gitlab.com/x33n/todomvc) HTML · 64 lines

25 <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>

26 </footer>

27 <script type="text/template" id="item-template">

28 <div class="view">

29 <input class="toggle" type="checkbox" <%= completed ? 'checked' : '' %>>

33 <input class="edit" value="<%- title %>">

34 </script>

35 <script type="text/template" id="stats-template">

36 <span id="todo-count"><strong><%= remaining %></strong> <%= remaining === 1 ? 'item' : 'items' %> left</span>

37 <ul id="filters">

52 <script src="node_modules/todomvc-common/base.js"></script>

53 <script src="node_modules/jquery/dist/jquery.js"></script>

54 <script src="node_modules/underscore/underscore.js"></script>

55 <script src="node_modules/backbone/backbone.js"></script>

56 <script src="node_modules/backbone.localstorage/backbone.localStorage.js"></script>

index.html (https://github.com/lpenguin/testSys.git) HTML · 82 lines

4 <script type='text/javascript' src='/js/jquery.js'></script>

5 <script type='text/javascript' src='/js/jquery.tmpl.js'></script>

6 <script type='text/javascript' src='/js/underscore.js'></script>

7 <script type='text/javascript' src='/js/backbone.js'></script>

8 <script type='text/javascript' src='/js/json2.js'></script>

34

35

36 <script type="text/x-jquery-tmpl" id="class-list-template">

37 <h1>Classes</h1>

38 <ul>

44 </script>

45

46 <script type="text/x-jquery-tmpl" id="class-edit-template">

47 <form>

48 <label for="name">Name</label>

observationMediaItemFormView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 164 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

57 },

58

59 template: 'ObservationMediaItem',

60

61 provider: null,

index.html (https://gitlab.com/github-cloud-corporation/coreos-web) HTML · 100 lines

45 <script src="../bower_components/angular-animate/angular-animate.js"></script>

46 <script src="../bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>

47 <script src="../bower_components/underscore/underscore.js"></script>

48 <script src="../bower_components/d3/d3.js"></script>

49 <script src="../bower_components/moment/moment.js"></script>

50

51 <!-- coreos-web -->

52 <script src="../dist/templates-html.js"></script>

53 <script src="../dist/templates-svg.js"></script>

index.html (https://github.com/wycats/todomvc.git) HTML · 64 lines

25 <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>

26 </footer>

27 <script type="text/template" id="item-template">

28 <div class="view">

29 <input class="toggle" type="checkbox" <%= completed ? 'checked' : '' %>>

33 <input class="edit" value="<%- title %>">

34 </script>

35 <script type="text/template" id="stats-template">

36 <span id="todo-count"><strong><%= remaining %></strong> <%= remaining === 1 ? 'item' : 'items' %> left</span>

37 <ul id="filters">

52 <script src="bower_components/todomvc-common/base.js"></script>

53 <script src="bower_components/jquery/jquery.js"></script>

54 <script src="bower_components/underscore/underscore.js"></script>

55 <script src="bower_components/backbone/backbone.js"></script>

56 <script src="bower_components/backbone.localStorage/backbone.localStorage.js"></script>

GettingStarted_CombineAssetsIntoModules.cshtml (https://github.com/IanPatrickHughes/cassette.git) Razor · 125 lines

6

7 <h2>Wait a sec... Assets and modules?</h2>

8 <p>An asset is any static file that ends up being used in the web browser, such JavaScript, CSS, CoffeeScript, LESS, HTML templates, etc.</p>

9 <p>A module is a collection of assets that form a single resource, when deployed in production.</p>

10 <p>For example, a collection of jQuery plugins can be combined into a single script. Cassette lets you keep

15 <li>Scripts</li>

16 <li>Stylesheets</li>

17 <li>HTML Templates</li>

18 </ul>

19 <p>Each module is processed using a sequence of steps that transform the assets. For example, CoffeeScript assets are compiled into JavaScript.</p>

42 jquery.js

43 jquery-ui.js

44 underscore.js

45

46 shared/

main.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 95 lines

2 /// <reference path="../libs/require/require.js" />

3 /// <reference path="../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../libs/underscore/underscore.js" />

5 /// <reference path="../libs/backbone/backbone.js" />

6 /// <reference path="../libs/backbone.marionette/backbone.marionette.js" />

23 goog: '../libs/require/goog', // Google async loader

24 propertyParser: '../libs/require/propertyparser', // Required by google loader

25 ich: '../libs/icanhaz/icanhaz', // Mustache templates cache and renderer

26 jqueryui: '../libs/jqueryui',

27 datepicker: '../libs/bootstrap/bootstrap-datepicker',

64 'queryparams',

65 'marionette',

66 'noext!/templates', // Load templates from server

67 'noext!/i18n', // Load localised strings from server

68 'models/authenticateduser',

index.html (https://bitbucket.org/gorkalauzirika/nodequiz.git) HTML · 43 lines

20 </article>

21 </body>

22 <script type="text/template" id="confirm-start">

23 <section id="confirm-start-dialog">

24 <button>Comenzar!</button>

25 </section>

26 </script>

27 <script type="text/template" id="answer-template">

28 <ul>

29 <li class="question"><%- question %></li>

33 </ul>

34 </script>

35 <script type="text/template" id="modal-template">

36 <p><%- message %></p>

37 </script>

conf.py (https://github.com/ZoomQuiet/sphinx-doc-zh.git) Python · 100 lines

10

11 master_doc = 'contents'

12 templates_path = ['_templates']

13 exclude_patterns = ['_build']

14

37 epub_pre_files = [('index.html', 'Welcome')]

38 epub_exclude_files = ['_static/opensearch.xml', '_static/doctools.js',

39 '_static/jquery.js', '_static/searchtools.js', '_static/underscore.js',

40 '_static/basic.css', 'search.html']

41

62 '', 1),

63 ('man/sphinx-quickstart', 'sphinx-quickstart', 'Sphinx documentation '

64 'template generator', '', 1),

65 ]

66

karma_common.conf.js (https://gitlab.com/unofficial-mirrors/edx-platform) JavaScript · 76 lines

29 {pattern: 'js/test/i18n.js', included: true},

30

31 {pattern: 'common/js/vendor/underscore.js', included: true},

32 {pattern: 'common/js/vendor/underscore.string.js', included: true},

33 {pattern: 'common/js/vendor/backbone.js', included: true},

68 {pattern: 'js/fixtures/**/*.html'},

69 {pattern: 'js/capa/fixtures/**/*.html'},

70 {pattern: 'common/templates/**/*.underscore'}

71 ]

72 };

dot.js (https://github.com/xaptronic/node_jsrender.git) JavaScript · 77 lines

5 // doT is a custom blend of templating functions from jQote2.js

6 // (jQuery plugin) by aefxx (http://aefxx.com/jquery-plugins/jqote2/)

7 // and underscore.js (http://documentcloud.github.com/underscore/)

8 // plus extensions.

9 //

19 }

20

21 doT.templateSettings = {

22 evaluate: /\{\{([\s\S]+?)\}\}/g,

23 interpolate: /\{\{=([\s\S]+?)\}\}/g,

42 }

43

44 doT.template = function(tmpl, c, defs) {

45 c = c || doT.templateSettings;

46 var cstart = c.append ? "'+(" : "';out+=(", // optimal choice depends on platform/size of templates

47 cend = c.append ? ")+'" : ");out+='";

48 var str = (c.use || c.define) ? resolveDefs(c.define, c.use, tmpl, defs || {}) : tmpl;

search.html (https://github.com/callowayproject/django-textvariation.git) HTML · 111 lines

20 </script>

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>

24 <script type="text/javascript" src="_static/searchtools.js"></script>

52 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>

53 <li class="toctree-l1"><a class="reference internal" href="variations_and_urls.html">Variations and URLs</a></li>

54 <li class="toctree-l1"><a class="reference internal" href="templates.html">Templates</a></li>

55 <li class="toctree-l1"><a class="reference internal" href="editing_one_dimension.html">Editing One Dimension</a></li>

56 <li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li>

py-modindex.html (https://github.com/xesscorp/KiCost.git) HTML · 202 lines

11 <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>

12 <script type="text/javascript" src="_static/jquery.js"></script>

13 <script type="text/javascript" src="_static/underscore.js"></script>

14 <script type="text/javascript" src="_static/doctools.js"></script>

15 <script type="text/javascript" src="_static/language_data.js"></script>

74 <td></td>

75 <td>&#160;&#160;&#160;

76 <a href="kicost.distributors.html#module-kicost.distributors.dist_local_template"><code class="xref">kicost.distributors.dist_local_template</code></a></td><td>

77 <em></em></td></tr>

78 <tr class="cg-1">

01.Augment.html (https://github.com/tbranyen/backbone.layoutmanager.git) HTML · 57 lines

14 <!-- Content template. -->

15 <script class="template" type="template" id="content">

16 This is some content...

17 </script>

19 <!-- Dependencies. -->

20 <script src="../../bower_components/jquery/dist/jquery.js"></script>

21 <script src="../../bower_components/underscore/underscore.js"></script>

22 <script src="../../bower_components/backbone/backbone.js"></script>

23

33 // has all the benefits.

34 var View = Backbone.View.extend({

35 template: "#content",

36

37 // Override the render method with a custom syntax.

38 render: function(template, context) {

39 return template(context);

commentCompositeView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 66 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

18 className: 'comment-item',

19

20 template: 'CommentItem',

21

22 itemView: CommentCompositeView,

index.html (https://github.com/etagwerker/chartly.git) HTML · 101 lines

16 <link rel="stylesheet" href="stylesheets/chartly.css">

17

18 <script type="text/template" id="provincia-template">

19 <%= nombre %>

20 </script>

21

22 <script type="text/template" id="departamento-template">

23 <%= formatted_name %>

24 </script>

25 <script type="text/template" id="departamento-population-template">

26 <h1>

27 <%= area.formatted_name() %>

Readme.md (https://github.com/andersjanmyr/zoo.git) Markdown · 179 lines

67 | | |-- jquery-1.6.3.js

68 | | |-- json2.js

69 | | `-- underscore.js

70 | |-- Readme.md # This file

71 | |-- SpecRunner.html # The spec runner

134 In order to do this you need to create an AnimalView that takes an

135 Animal as a model parameter. You need to set the properties and you need

136 to update the template in the SpecRunner.html to hold the values you

137 need. You also need to setup the proper events to trigger on change.

138

list.mako (https://github.com/xaevir/RubyRate-python.git) Mako · 69 lines

6 $LAB

7 .script("/static/js/libs/jquery/jquery.js")

8 .script("/static/js/libs/underscore/underscore.js").wait()

9 .script("/static/js/libs/backbone/backbone.js")

10 .script("/static/js/libs/jquery-validation/jquery.validate.js")

27

28 <%text>

29 <script type="text/template" id="wish-item">

30 <blockquote class="bubble tip-right">

31 <p>

head.md (https://bitbucket.org/jonasteuwen/envisionjs.git) Markdown · 157 lines

12 * Modern Browsers, IE 6+

13 * Mobile / Touch Support

14 * Pre-built Templates

15 * Adaptable to Existing Libraries

16

19 Envision.js ships with all it's dependencies. It uses:

20

21 * <a href="http://documentcloud.github.com/underscore/">underscore.js</a>

22 * <a href="https://github.com/fat/bean">bean</a>

23 * <a href="https://github.com/ded/bonzo">bonzo</a>

27

28 To use Envision.js, include `envision.min.js` and `envision.min.css` in your

29 page. To display a visualization, either use a Template or create a custom

30 visualization with the Envision.js API.

31

angular-accordion.js (https://gitlab.com/kapilp/Seeko) JavaScript · 158 lines

5 transclude: true,

6 replace: true,

7 template: '<div ng-transclude class="angular-accordion-container"></div>',

8 controller: ['$scope', function($scope) {

9 var panes = [];

29 transclude: true,

30 replace: true,

31 template: '<div ng-transclude class="angular-accordion-pane"></div>'

32 };

33 })

44 controller.addPane(scope);

45

46 // TODO: figure out how to trigger this without interpolation in the template

47 iAttrs.$observe('disabled', function(value) {

48 // attributes always get passed as strings

index.html (https://gitlab.com/avinashmx/WildFly) HTML · 71 lines

56 <script src="../../main/webapp/js/libs/jquery.mobile-1.4.2.js"></script>

57

58 <!-- Underscore.js Template for building contacts (simplified for testing) -->

59 <script type="text/template" id="contact-tmpl"><% _.each(contacts, function(contact) { %><div><%=contact.id%></div><% }); %></script>

backboneintegration.js (https://github.com/krawaller/kranium.git) JavaScript · 163 lines

8 var initBackbone = K.initBackbone = function(){

9 try {

10 Ti.include('/kranium/lib/backbone/underscore.js');

11 Ti.include('/kranium/lib/backbone/backbone.js');

12

113 },

114

115 template: function(o){

116 return K.extend({}, this._props, o, { type: this._klass });

117 },

build.sh (https://github.com/wrml/wrml.git) Shell · 264 lines

41

42 ########################

43 # ECO Templates (Embedded CoffeeScript)

44 # https://github.com/sstephenson/eco

45 #

147

148 # TODO: Replace this with xargs and a file that lists the files in order

149 cat ${JS_LIB_PATH}/underscore.js >> ${COMPILED_LIB_JS}

150 cat ${JS_LIB_PATH}/json2.js >> ${COMPILED_LIB_JS}

151 cat ${JS_LIB_PATH}/backbone.js >> ${COMPILED_LIB_JS}

180

181 ##################################################

182 # Compile App's ECO templates

183 ##################################################

184

clipper.html.jade (https://github.com/cliclip/htm.git) Jade · 75 lines

48 div#setpop

49

50 //- :: application templates

51 include tmpl/addclip-view-template.jade

52 include tmpl/login-view-template.jade

53 include tmpl/clipmemo-view-template.jade

54 include tmpl/taglist-view-template.jade

55 include tmpl/message-view-template.jade

60 //- script(src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js")

61 script(src="js/lib/jquery.min.js")

62 //- script(src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js")

63 script(src="js/lib/underscore.min.js")

64 //- script(src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.1/backbone-min.js")

genindex.html (https://github.com/tokuda109/django-staticfiles-doc-ja.git) HTML · 134 lines

21 </script>

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>

25 <link rel="top" title="django-staticfiles-docs-ja v1.1.2 documentation" href="index.html" />

80 <table style="width: 100%" class="indextable genindextable"><tr>

81 <td style="width: 33%" valign="top"><dl>

82 <dt><a href="helpers.html#staticfiles.templatetags.static.get_media_prefix">templatetags.static.get_media_prefix() (in module staticfiles)</a></dt>

83 <dt><a href="helpers.html#staticfiles.templatetags.static.get_static_prefix">templatetags.static.get_static_prefix() (in module staticfiles)</a></dt>

84 </dl></td>

85 <td style="width: 33%" valign="top"><dl>

86 <dt><a href="helpers.html#staticfiles.templatetags.staticfiles.static">templatetags.staticfiles.static() (in module staticfiles)</a></dt>

87 </dl></td>

88 </tr></table>

selection-modal.blade.php (https://gitlab.com/eminiarts/tommunz) PHP · 122 lines

1 {{ Asset::queue('data-grid', 'cartalyst/js/data-grid.js', 'jquery') }}

2 {{ Asset::queue('underscore', 'underscore/js/underscore.js', 'jquery') }}

3 {{ Asset::queue('moment', 'moment/js/moment.js', 'jquery') }}

4

116 </div>

117

118 {{-- Grid: templates --}}

119 @include('platform/media::grid/manager/results')

120 @include('platform/media::grid/manager/pagination')

index.html (https://bitbucket.org/albertoprb/fleetster-challenge.git) HTML · 82 lines

56

57 <script src="spec/support/jquery.js"></script>

58 <script src="spec/support/underscore.js"></script>

59 <script src="spec/support/backbone.js"></script>

60 <script src="backbone.localStorage.js"></script>

63 <!-- Templates -->

64

65 <script type="text/template" id="item-template">

66 <div class="view">

67 <input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> />

72 </script>

73

74 <script type="text/template" id="stats-template">

75 <% if (done) { %>

76 <a id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a>

main.html (https://github.com/siyegen/A--backbone.git) HTML · 43 lines

4 <title>A* demo with a backbone</title>

5

6 <script src="./js/underscore.js"></script>

7 <script src="./js/jquery-1.6.4.js"></script>

8 <script src="./js/backbone.js"></script>

15 </head>

16 <body>

17 <script type="text/template" id="grid-template">

18 <table class="grid">

19 <% for(var i=0; i<rows; i++){%><tr id="row-<%= i %>"></tr><% }%>

20 </table>

21 </script>

22 <script type="text/template" id="button-template">

23 <button class="btn primary" id="<%= id %>"><%= name %></button>

24 </script>

userDetailsView.js (https://github.com/Bowerbird/bowerbird-web.git) JavaScript · 202 lines

2 /// <reference path="../../libs/require/require.js" />

3 /// <reference path="../../libs/jquery/jquery-1.7.2.js" />

4 /// <reference path="../../libs/underscore/underscore.js" />

5 /// <reference path="../../libs/backbone/backbone.js" />

6 /// <reference path="../../libs/backbone.marionette/backbone.marionette.js" />

17 className: 'user double',

18

19 template: 'User',

20

21 regions: {

SpecRunner.html (https://github.com/pandaproject/panda.git) HTML · 124 lines

21 <script type="text/javascript" src="lib/bootstrap.js"></script>

22 <script type="text/javascript" src="lib/bootbox.js"></script>

23 <script type="text/javascript" src="lib/underscore.js"></script>

24 <script type="text/javascript" src="lib/backbone.js"></script>

25 <script type="text/javascript" src="lib/backbone-tastypie.js"></script>

30 <script type="text/javascript" src="application.js"></script>

31

32 <script type="text/javascript" src="http://localhost:8000/templates.js"></script>

33 <script type="text/javascript" src="http://localhost:8000/i18n.js"></script>

34