Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed modules

  • Loading branch information...
commit 6357ce69db89acc7e8f5fa75eac15f8650b89240 1 parent e2858b4
@1602 1602 authored
Showing with 0 additions and 32,494 deletions.
  1. +0 −54 node_modules/ejs-ext/index.js
  2. +0 −17 node_modules/ejs-ext/package.json
  3. +0 −12 node_modules/ejs-ext/templates/application_layout.ejs
  4. +0 −7 node_modules/ejs-ext/templates/scaffold_edit.ejs
  5. +0 −9 node_modules/ejs-ext/templates/scaffold_index.ejs
  6. +0 −22 node_modules/ejs-ext/templates/scaffold_layout.ejs
  7. +0 −7 node_modules/ejs-ext/templates/scaffold_new.ejs
  8. +0 −4 node_modules/ejs-ext/templates/scaffold_show.ejs
  9. +0 −3  node_modules/ejs/.gitignore
  10. +0 −3  node_modules/ejs/.gitmodules
  11. +0 −70 node_modules/ejs/History.md
  12. +0 −19 node_modules/ejs/Makefile
  13. +0 −142 node_modules/ejs/Readme.md
  14. +0 −14 node_modules/ejs/benchmark.js
  15. +0 −531 node_modules/ejs/ejs.js
  16. +0 −2  node_modules/ejs/ejs.min.js
  17. +0 −5 node_modules/ejs/examples/client.html
  18. +0 −7 node_modules/ejs/examples/list.ejs
  19. +0 −16 node_modules/ejs/examples/list.js
  20. +0 −2  node_modules/ejs/index.js
  21. +0 −251 node_modules/ejs/lib/ejs.js
  22. +0 −198 node_modules/ejs/lib/filters.js
  23. +0 −23 node_modules/ejs/lib/utils.js
  24. +0 −8 node_modules/ejs/package.json
  25. +0 −173 node_modules/ejs/support/compile.js
  26. +0 −268 node_modules/ejs/test/ejs.test.js
  27. +0 −54 node_modules/jade-ext/index.js
  28. +0 −17 node_modules/jade-ext/package.json
  29. +0 −9 node_modules/jade-ext/templates/application_layout.jade
  30. +0 −8 node_modules/jade-ext/templates/scaffold_edit.jade
  31. +0 −10 node_modules/jade-ext/templates/scaffold_index.jade
  32. +0 −18 node_modules/jade-ext/templates/scaffold_layout.jade
  33. +0 −8 node_modules/jade-ext/templates/scaffold_new.jade
  34. +0 −5 node_modules/jade-ext/templates/scaffold_show.jade
  35. +0 −4 node_modules/jade/.gitignore
  36. +0 −21 node_modules/jade/.gitmodules
  37. +0 −4 node_modules/jade/.npmignore
  38. +0 −372 node_modules/jade/History.md
  39. +0 −22 node_modules/jade/LICENSE
  40. +0 −30 node_modules/jade/Makefile
  41. +0 −562 node_modules/jade/Readme.md
  42. +0 −32 node_modules/jade/benchmarks/common.js
  43. +0 −24 node_modules/jade/benchmarks/ejs.js
  44. +0 −6 node_modules/jade/benchmarks/example-self.jade
  45. +0 −8 node_modules/jade/benchmarks/example.ejs
  46. +0 −6 node_modules/jade/benchmarks/example.haml
  47. +0 −6 node_modules/jade/benchmarks/example.jade
  48. +0 −6 node_modules/jade/benchmarks/example2.haml
  49. +0 −25 node_modules/jade/benchmarks/haml.js
  50. +0 −30 node_modules/jade/benchmarks/haml2.js
  51. +0 −43 node_modules/jade/benchmarks/jade-self.js
  52. +0 −41 node_modules/jade/benchmarks/jade.js
  53. +0 −206 node_modules/jade/bin/jade
  54. +0 −8 node_modules/jade/examples/attributes.jade
  55. +0 −12 node_modules/jade/examples/attributes.js
  56. +0 −8 node_modules/jade/examples/code.jade
  57. +0 −20 node_modules/jade/examples/code.js
  58. +0 −8 node_modules/jade/examples/conditionals.jade
  59. +0 −59 node_modules/jade/examples/conditionals.js
  60. +0 −5 node_modules/jade/examples/csrf.jade
  61. +0 −42 node_modules/jade/examples/csrf.js
  62. +0 −5 node_modules/jade/examples/dynamicscript.jade
  63. +0 −20 node_modules/jade/examples/dynamicscript.js
  64. +0 −3  node_modules/jade/examples/each.jade
  65. +0 −20 node_modules/jade/examples/each.js
  66. +0 −29 node_modules/jade/examples/form.jade
  67. +0 −22 node_modules/jade/examples/form.js
  68. +0 −11 node_modules/jade/examples/layout-debug.js
  69. +0 −14 node_modules/jade/examples/layout.jade
  70. +0 −11 node_modules/jade/examples/layout.js
  71. +0 −9 node_modules/jade/examples/model.jade
  72. +0 −124 node_modules/jade/examples/model.js
  73. +0 −8 node_modules/jade/examples/nested-filters.jade
  74. +0 −73 node_modules/jade/examples/nested-filters.js
  75. +0 −13 node_modules/jade/examples/rss.jade
  76. +0 −11 node_modules/jade/examples/rss.js
  77. +0 −36 node_modules/jade/examples/text.jade
  78. +0 −10 node_modules/jade/examples/text.js
  79. +0 −11 node_modules/jade/examples/whitespace.jade
  80. +0 −11 node_modules/jade/examples/whitespace.js
  81. +0 −2  node_modules/jade/index.js
  82. +0 −2,397 node_modules/jade/jade.js
  83. +0 −2  node_modules/jade/jade.min.js
  84. +0 −402 node_modules/jade/lib/compiler.js
  85. +0 −19 node_modules/jade/lib/doctypes.js
  86. +0 −92 node_modules/jade/lib/filters.js
  87. +0 −1  node_modules/jade/lib/index.js
  88. +0 −318 node_modules/jade/lib/jade.js
  89. +0 −523 node_modules/jade/lib/lexer.js
  90. +0 −33 node_modules/jade/lib/nodes/block-comment.js
  91. +0 −54 node_modules/jade/lib/nodes/block.js
  92. +0 −35 node_modules/jade/lib/nodes/code.js
  93. +0 −32 node_modules/jade/lib/nodes/comment.js
  94. +0 −29 node_modules/jade/lib/nodes/doctype.js
  95. +0 −35 node_modules/jade/lib/nodes/each.js
  96. +0 −35 node_modules/jade/lib/nodes/filter.js
  97. +0 −17 node_modules/jade/lib/nodes/index.js
  98. +0 −14 node_modules/jade/lib/nodes/node.js
  99. +0 −80 node_modules/jade/lib/nodes/tag.js
  100. +0 −42 node_modules/jade/lib/nodes/text.js
  101. +0 −435 node_modules/jade/lib/parser.js
  102. +0 −18 node_modules/jade/lib/self-closing.js
  103. +0 −49 node_modules/jade/lib/utils.js
  104. +0 −19 node_modules/jade/package.json
  105. +0 −173 node_modules/jade/support/compile.js
  106. +0 −153 node_modules/jade/test/filters.test.js
  107. +0 −3  node_modules/jade/test/fixtures/invalid.jade
  108. +0 −3  node_modules/jade/test/fixtures/layout.jade
  109. +0 −879 node_modules/jade/test/jade.test.js
  110. +0 −6 node_modules/railway/.gitmodules
  111. +0 −171 node_modules/railway/CHANGELOG.md
  112. +0 −416 node_modules/railway/README.md
  113. +0 −23 node_modules/railway/app/controllers/test_controller.js
  114. +0 −90 node_modules/railway/bin/railway
  115. +0 −54 node_modules/railway/distr/ejs-ext/index.js
  116. +0 −17 node_modules/railway/distr/ejs-ext/package.json
  117. +0 −12 node_modules/railway/distr/ejs-ext/templates/application_layout.ejs
  118. +0 −7 node_modules/railway/distr/ejs-ext/templates/scaffold_edit.ejs
  119. +0 −9 node_modules/railway/distr/ejs-ext/templates/scaffold_index.ejs
  120. +0 −22 node_modules/railway/distr/ejs-ext/templates/scaffold_layout.ejs
  121. +0 −7 node_modules/railway/distr/ejs-ext/templates/scaffold_new.ejs
  122. +0 −4 node_modules/railway/distr/ejs-ext/templates/scaffold_show.ejs
  123. +0 −3  node_modules/railway/distr/ejs/.gitignore
  124. +0 −3  node_modules/railway/distr/ejs/.gitmodules
  125. +0 −70 node_modules/railway/distr/ejs/History.md
  126. +0 −19 node_modules/railway/distr/ejs/Makefile
  127. +0 −142 node_modules/railway/distr/ejs/Readme.md
  128. +0 −14 node_modules/railway/distr/ejs/benchmark.js
  129. +0 −531 node_modules/railway/distr/ejs/ejs.js
  130. +0 −2  node_modules/railway/distr/ejs/ejs.min.js
  131. +0 −5 node_modules/railway/distr/ejs/examples/client.html
  132. +0 −7 node_modules/railway/distr/ejs/examples/list.ejs
  133. +0 −16 node_modules/railway/distr/ejs/examples/list.js
  134. +0 −2  node_modules/railway/distr/ejs/index.js
  135. +0 −251 node_modules/railway/distr/ejs/lib/ejs.js
  136. +0 −198 node_modules/railway/distr/ejs/lib/filters.js
  137. +0 −23 node_modules/railway/distr/ejs/lib/utils.js
  138. +0 −8 node_modules/railway/distr/ejs/package.json
  139. +0 −173 node_modules/railway/distr/ejs/support/compile.js
  140. +0 −268 node_modules/railway/distr/ejs/test/ejs.test.js
  141. +0 −54 node_modules/railway/distr/jade-ext/index.js
  142. +0 −17 node_modules/railway/distr/jade-ext/package.json
  143. +0 −9 node_modules/railway/distr/jade-ext/templates/application_layout.jade
  144. +0 −8 node_modules/railway/distr/jade-ext/templates/scaffold_edit.jade
  145. +0 −10 node_modules/railway/distr/jade-ext/templates/scaffold_index.jade
  146. +0 −18 node_modules/railway/distr/jade-ext/templates/scaffold_layout.jade
  147. +0 −8 node_modules/railway/distr/jade-ext/templates/scaffold_new.jade
  148. +0 −5 node_modules/railway/distr/jade-ext/templates/scaffold_show.jade
  149. +0 −4 node_modules/railway/distr/jade/.gitignore
  150. +0 −21 node_modules/railway/distr/jade/.gitmodules
  151. +0 −4 node_modules/railway/distr/jade/.npmignore
  152. +0 −372 node_modules/railway/distr/jade/History.md
  153. +0 −22 node_modules/railway/distr/jade/LICENSE
  154. +0 −30 node_modules/railway/distr/jade/Makefile
  155. +0 −562 node_modules/railway/distr/jade/Readme.md
  156. +0 −32 node_modules/railway/distr/jade/benchmarks/common.js
  157. +0 −24 node_modules/railway/distr/jade/benchmarks/ejs.js
  158. +0 −6 node_modules/railway/distr/jade/benchmarks/example-self.jade
  159. +0 −8 node_modules/railway/distr/jade/benchmarks/example.ejs
  160. +0 −6 node_modules/railway/distr/jade/benchmarks/example.haml
  161. +0 −6 node_modules/railway/distr/jade/benchmarks/example.jade
  162. +0 −6 node_modules/railway/distr/jade/benchmarks/example2.haml
  163. +0 −25 node_modules/railway/distr/jade/benchmarks/haml.js
  164. +0 −30 node_modules/railway/distr/jade/benchmarks/haml2.js
  165. +0 −43 node_modules/railway/distr/jade/benchmarks/jade-self.js
  166. +0 −41 node_modules/railway/distr/jade/benchmarks/jade.js
  167. +0 −206 node_modules/railway/distr/jade/bin/jade
  168. +0 −8 node_modules/railway/distr/jade/examples/attributes.jade
  169. +0 −12 node_modules/railway/distr/jade/examples/attributes.js
  170. +0 −8 node_modules/railway/distr/jade/examples/code.jade
  171. +0 −20 node_modules/railway/distr/jade/examples/code.js
  172. +0 −8 node_modules/railway/distr/jade/examples/conditionals.jade
  173. +0 −59 node_modules/railway/distr/jade/examples/conditionals.js
  174. +0 −5 node_modules/railway/distr/jade/examples/csrf.jade
  175. +0 −42 node_modules/railway/distr/jade/examples/csrf.js
  176. +0 −5 node_modules/railway/distr/jade/examples/dynamicscript.jade
  177. +0 −20 node_modules/railway/distr/jade/examples/dynamicscript.js
  178. +0 −3  node_modules/railway/distr/jade/examples/each.jade
  179. +0 −20 node_modules/railway/distr/jade/examples/each.js
  180. +0 −29 node_modules/railway/distr/jade/examples/form.jade
  181. +0 −22 node_modules/railway/distr/jade/examples/form.js
  182. +0 −11 node_modules/railway/distr/jade/examples/layout-debug.js
  183. +0 −14 node_modules/railway/distr/jade/examples/layout.jade
  184. +0 −11 node_modules/railway/distr/jade/examples/layout.js
  185. +0 −9 node_modules/railway/distr/jade/examples/model.jade
  186. +0 −124 node_modules/railway/distr/jade/examples/model.js
  187. +0 −8 node_modules/railway/distr/jade/examples/nested-filters.jade
  188. +0 −73 node_modules/railway/distr/jade/examples/nested-filters.js
  189. +0 −13 node_modules/railway/distr/jade/examples/rss.jade
  190. +0 −11 node_modules/railway/distr/jade/examples/rss.js
  191. +0 −36 node_modules/railway/distr/jade/examples/text.jade
  192. +0 −10 node_modules/railway/distr/jade/examples/text.js
  193. +0 −11 node_modules/railway/distr/jade/examples/whitespace.jade
  194. +0 −11 node_modules/railway/distr/jade/examples/whitespace.js
  195. +0 −2  node_modules/railway/distr/jade/index.js
  196. +0 −2,397 node_modules/railway/distr/jade/jade.js
  197. +0 −2  node_modules/railway/distr/jade/jade.min.js
  198. +0 −402 node_modules/railway/distr/jade/lib/compiler.js
  199. +0 −19 node_modules/railway/distr/jade/lib/doctypes.js
  200. +0 −92 node_modules/railway/distr/jade/lib/filters.js
  201. +0 −1  node_modules/railway/distr/jade/lib/index.js
  202. +0 −318 node_modules/railway/distr/jade/lib/jade.js
  203. +0 −523 node_modules/railway/distr/jade/lib/lexer.js
  204. +0 −33 node_modules/railway/distr/jade/lib/nodes/block-comment.js
  205. +0 −54 node_modules/railway/distr/jade/lib/nodes/block.js
  206. +0 −35 node_modules/railway/distr/jade/lib/nodes/code.js
  207. +0 −32 node_modules/railway/distr/jade/lib/nodes/comment.js
  208. +0 −29 node_modules/railway/distr/jade/lib/nodes/doctype.js
  209. +0 −35 node_modules/railway/distr/jade/lib/nodes/each.js
  210. +0 −35 node_modules/railway/distr/jade/lib/nodes/filter.js
  211. +0 −17 node_modules/railway/distr/jade/lib/nodes/index.js
  212. +0 −14 node_modules/railway/distr/jade/lib/nodes/node.js
  213. +0 −80 node_modules/railway/distr/jade/lib/nodes/tag.js
  214. +0 −42 node_modules/railway/distr/jade/lib/nodes/text.js
  215. +0 −435 node_modules/railway/distr/jade/lib/parser.js
  216. +0 −18 node_modules/railway/distr/jade/lib/self-closing.js
  217. +0 −49 node_modules/railway/distr/jade/lib/utils.js
  218. +0 −19 node_modules/railway/distr/jade/package.json
  219. +0 −173 node_modules/railway/distr/jade/support/compile.js
  220. +0 −153 node_modules/railway/distr/jade/test/filters.test.js
  221. +0 −3  node_modules/railway/distr/jade/test/fixtures/invalid.jade
  222. +0 −3  node_modules/railway/distr/jade/test/fixtures/layout.jade
  223. +0 −879 node_modules/railway/distr/jade/test/jade.test.js
  224. +0 −149 node_modules/railway/lib/action_observer.js
  225. +0 −328 node_modules/railway/lib/controller.js
  226. +0 −41 node_modules/railway/lib/datamapper/mongoose.js
  227. +0 −612 node_modules/railway/lib/datamapper/mysql.js
  228. +0 −19 node_modules/railway/lib/datamapper/red-cli/LICENSE
  229. +0 −103 node_modules/railway/lib/datamapper/red-cli/README.md
  230. +0 −23 node_modules/railway/lib/datamapper/red-cli/TODO.md
  231. +0 −918 node_modules/railway/lib/datamapper/red-cli/lib/redis-client.js
  232. +0 −34 node_modules/railway/lib/datamapper/red-cli/package.json
  233. +0 −6 node_modules/railway/lib/datamapper/red-cli/seed.yml
  234. BIN  node_modules/railway/lib/datamapper/red-cli/test/sample.png
  235. +0 −1,896 node_modules/railway/lib/datamapper/red-cli/test/test.js
  236. +0 −123 node_modules/railway/lib/datamapper/red-cli/test/test_shutdown_reconnect.js
  237. +0 −48 node_modules/railway/lib/datamapper/red-cli/test/test_throw_from_callback.js
  238. +0 −573 node_modules/railway/lib/datamapper/redis.js
  239. +0 −411 node_modules/railway/lib/datamapper/riak.js
  240. +0 −126 node_modules/railway/lib/date_format.js
  241. +0 −41 node_modules/railway/lib/extensions.js
  242. +0 −543 node_modules/railway/lib/generators.js
  243. +0 −315 node_modules/railway/lib/helpers.js
  244. +0 −105 node_modules/railway/lib/locales.js
  245. +0 −14 node_modules/railway/lib/logger.js
  246. +0 −190 node_modules/railway/lib/models.js
  247. +0 −210 node_modules/railway/lib/onrailway.js
  248. +0 −172 node_modules/railway/lib/railway_utils.js
  249. +0 −170 node_modules/railway/lib/route_mapper.js
  250. +0 −208 node_modules/railway/lib/tools.js
  251. +0 −1  node_modules/railway/node_modules/.bin/cake
  252. +0 −1  node_modules/railway/node_modules/.bin/coffee
  253. +0 −1  node_modules/railway/node_modules/.bin/express
  254. +0 −11 node_modules/railway/node_modules/coffee-script/.npmignore
  255. +0 −22 node_modules/railway/node_modules/coffee-script/LICENSE
  256. +0 −48 node_modules/railway/node_modules/coffee-script/README
  257. +0 −78 node_modules/railway/node_modules/coffee-script/Rakefile
  258. +0 −7 node_modules/railway/node_modules/coffee-script/bin/cake
  259. +0 −7 node_modules/railway/node_modules/coffee-script/bin/coffee
  260. +0 −44 node_modules/railway/node_modules/coffee-script/extras/jsl.conf
  261. +0 −75 node_modules/railway/node_modules/coffee-script/lib/browser.js
  262. +0 −76 node_modules/railway/node_modules/coffee-script/lib/cake.js
  263. +0 −135 node_modules/railway/node_modules/coffee-script/lib/coffee-script.js
  264. +0 −301 node_modules/railway/node_modules/coffee-script/lib/command.js
  265. +0 −591 node_modules/railway/node_modules/coffee-script/lib/grammar.js
  266. +0 −66 node_modules/railway/node_modules/coffee-script/lib/helpers.js
  267. +0 −8 node_modules/railway/node_modules/coffee-script/lib/index.js
  268. +0 −656 node_modules/railway/node_modules/coffee-script/lib/lexer.js
  269. +0 −2,289 node_modules/railway/node_modules/coffee-script/lib/nodes.js
  270. +0 −111 node_modules/railway/node_modules/coffee-script/lib/optparse.js
Sorry, we could not display the entire diff because too many files (1,410) changed.
View
54 node_modules/ejs-ext/index.js
@@ -1,54 +0,0 @@
-// monkey patch ejs
-var ejs = require('ejs'), old_parse = ejs.parse;
-ejs.parse = function () {
- var str = old_parse.apply(this, Array.prototype.slice.call(arguments));
- return str.replace('var buf = [];', 'var buf = []; arguments.callee.buf = buf;');
-};
-
-/**
- * This extension will be used by default for all template files
- */
-exports.extension = '.ejs';
-
-/**
- * Original templating engine
- */
-exports.module = 'ejs';
-
-/**
- * Get source template filename
- */
-exports.template = function (name) {
- return __dirname + '/templates/' + name + '.ejs';
-};
-
-exports.templateText = function (name, data) {
- switch (name) {
-
- case 'default_action_view':
- return '<h1>' + data.join('#') + '</h1>\n';
-
- case 'scaffold_form':
- var form = '';
- data.forEach(function (property) {
- switch (property.type) {
- case 'Boolean':
- form += [
- '<p>',
- ' <%- form.checkbox("' + property.name + '") %>',
- ' <%- form.label("' + property.name + '") %>',
- '</p>'
- ].join('\n') + '\n';
- break;
- default:
- form += [
- '<p>',
- ' <%- form.label("' + property.name + '") %><br />',
- ' <%- form.input("' + property.name + '") %>',
- '</p>'
- ].join('\n') + '\n';
- }
- });
- return form;
- }
-};
View
17 node_modules/ejs-ext/package.json
@@ -1,17 +0,0 @@
-{
- "name": "ejs-ext",
- "version": "0.0.3",
- "author": "Anatoliy C.",
- "description": "RailwayJS adaptor for ejs templating engine",
- "main": "index.js",
- "engines": {
- "node": ">= 0.4.0"
- },
- "dependencies": {
- "ejs": ">= 0"
- },
- "devDependencies": {},
- "repository": {
- "url": ""
- }
-}
View
12 node_modules/ejs-ext/templates/application_layout.ejs
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title><%= title %></title>
- <%- stylesheet_link_tag('reset', 'style') %>
- <%- javascript_include_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', 'rails', 'application') %>
- <%- csrf_meta_tag() %>
- </head>
- <body>
- <%- body %>
- </body>
-</html>
View
7 node_modules/ejs-ext/templates/scaffold_edit.ejs
@@ -1,7 +0,0 @@
-<h1>Edit model</h1>
-
-<% form_for(model, {action: path_to.model(model), method: 'PUT', id: "model_form"}, function (form) { %>
- <%- partial('models/form.ejs', {locals: {form: form, model: model}}) %>
- <%- form.submit('Update model') %> or
- <%- link_to('Cancel', path_to.model(model)) %>
-<% });%>
View
9 node_modules/ejs-ext/templates/scaffold_index.ejs
@@ -1,9 +0,0 @@
-<h1>Index of model</h1>
-
-<% models.forEach(function (model) { %>
- model #<%= model.id %>
- <%- link_to('Edit', path_to.edit_model(model)) %>
- <%- link_to('Delete', path_to.model(model), {method: 'delete', remote: true, jsonp: '(function (u) {location.href = u;})'}) %><br/>
-<% }); %>
-
-<%- link_to('New model', path_to.new_model) %>
View
22 node_modules/ejs-ext/templates/scaffold_layout.ejs
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Controller model: <%= title %></title>
- <%- stylesheet_link_tag('reset', 'scaffold') %>
- <%- javascript_include_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', 'rails', 'application') %>
- <%- csrf_meta_tag() %>
- </head>
- <body>
- <% var flash = request.flash('info').pop(); if (flash) { %>
- <div class="flash info"><%- flash %></div>
- <% } %>
-
- <% flash = request.flash('error').pop(); if (flash) { %>
- <div class="flash error"><%- flash %></div>
- <% }; %>
-
- <div class="wrap">
- <%- body %>
- </div>
- </body>
-</html>
View
7 node_modules/ejs-ext/templates/scaffold_new.ejs
@@ -1,7 +0,0 @@
-<h1>New model</h1>
-
-<% form_for(model, {action: path_to.models, method: 'POST', id: "model_form"}, function (form) { %>
- <%- partial('models/form.ejs', {locals: {form: form, model: model}}) %>
- <%- form.submit('Create model') %> or
- <%- link_to('Cancel', path_to.models) %>
-<% });%>
View
4 node_modules/ejs-ext/templates/scaffold_show.ejs
@@ -1,4 +0,0 @@
-<h1>Details of model</h1>
-<%- link_to('Edit', path_to.edit_model(model)) %>
-<%- link_to('Delete', path_to.model(model), {method: 'delete', remote: true, jsonp: '(function (u) { location.href = u; })'}) %><br/>
-<%- link_to('Back to index', path_to.models) %>
View
3  node_modules/ejs/.gitignore
@@ -1,3 +0,0 @@
-# ignore any vim files:
-*.sw[a-z]
-vim/.netrwhist
View
3  node_modules/ejs/.gitmodules
@@ -1,3 +0,0 @@
-[submodule "support/expresso"]
- path = support/expresso
- url = http://github.com/visionmedia/expresso.git
View
70 node_modules/ejs/History.md
@@ -1,70 +0,0 @@
-
-0.4.3 / 2011-06-20
-==================
-
- * Fixed stacktraces line number when used multiline js expressions [Octave]
-
-0.4.2 / 2011-05-11
-==================
-
- * Added client side support
-
-0.4.1 / 2011-04-21
-==================
-
- * Fixed error context
-
-0.4.0 / 2011-04-21
-==================
-
- * Added; ported jade's error reporting to ejs. [slaskis]
-
-0.3.1 / 2011-02-23
-==================
-
- * Fixed optional `compile()` options
-
-0.3.0 / 2011-02-14
-==================
-
- * Added 'json' filter [Yuriy Bogdanov]
- * Use exported version of parse function to allow monkey-patching [Anatoliy Chakkaev]
-
-0.2.1 / 2010-10-07
-==================
-
- * Added filter support
- * Fixed _cache_ option. ~4x performance increase
-
-0.2.0 / 2010-08-05
-==================
-
- * Added support for global tag config
- * Added custom tag support. Closes #5
- * Fixed whitespace bug. Closes #4
-
-0.1.0 / 2010-08-04
-==================
-
- * Faster implementation [ashleydev]
-
-0.0.4 / 2010-08-02
-==================
-
- * Fixed single quotes for content outside of template tags. [aniero]
- * Changed; `exports.compile()` now expects only "locals"
-
-0.0.3 / 2010-07-15
-==================
-
- * Fixed single quotes
-
-0.0.2 / 2010-07-09
-==================
-
- * Fixed newline preservation
-
-0.0.1 / 2010-07-09
-==================
-
- * Initial release
View
19 node_modules/ejs/Makefile
@@ -1,19 +0,0 @@
-SRC = $(shell find lib -name "*.js" -type f)
-UGLIFY_FLAGS = --no-mangle
-
-test:
- @./support/expresso/bin/expresso -I lib test/*.test.js
-
-ejs.js: $(SRC)
- @node support/compile.js $^
-
-ejs.min.js: ejs.js
- @uglifyjs $(UGLIFY_FLAGS) $< > $@ \
- && du ejs.min.js \
- && du ejs.js
-
-clean:
- rm -f ejs.js
- rm -f ejs.min.js
-
-.PHONY: test
View
142 node_modules/ejs/Readme.md
@@ -1,142 +0,0 @@
-
-# EJS
-
-Embedded JavaScript templates.
-
-## Installation
-
- $ npm install ejs
-
-## Features
-
- * Complies with the [Express](http://expressjs.com) view system
- * Static caching of intermediate JavaScript
- * Unbuffered code for conditionals etc `<% code %>`
- * Escapes html by default with `<%= code %>`
- * Unescaped buffering with `<%- code %>`
- * Supports tag customization
- * Filter support for designer-friendly templates
- * Client-side support
-
-## Example
-
- <% if (user) { %>
- <h2><%= user.name %></h2>
- <% } %>
-
-## Usage
-
- ejs.compile(str, options);
- // => Function
-
- ejs.render(str, options);
- // => str
-
-## Options
-
- - `locals` Local variables object
- - `cache` Compiled functions are cached, requires `filename`
- - `filename` Used by `cache` to key caches
- - `scope` Function execution context
- - `debug` Output generated function body
- - `open` Open tag, defaulting to "<%"
- - `close` Closing tag, defaulting to "%>"
-
-## Custom Tags
-
-Custom tags can also be applied globally:
-
- var ejs = require('ejs');
- ejs.open = '{{';
- ejs.close = '}}';
-
-Which would make the following a valid template:
-
- <h1>{{= title }}</h1>
-
-## Filters
-
-EJS conditionally supports the concept of "filters". A "filter chain"
-is a designer friendly api for manipulating data, without writing JavaScript.
-
-Filters can be applied by supplying the _:_ modifier, so for example if we wish to take the array `[{ name: 'tj' }, { name: 'mape' }, { name: 'guillermo' }]` and output a list of names we can do this simply with filters:
-
-Template:
-
- <p><%=: users | map:'name' | join %></p>
-
-Output:
-
- <p>Tj, Mape, Guillermo</p>
-
-Render call:
-
- ejs.render(str, {
- locals: {
- users: [
- { name: 'tj' },
- { name: 'mape' },
- { name: 'guillermo' }
- ]
- }
- });
-
-Or perhaps capitalize the first user's name for display:
-
- <p><%=: users | first | capitalize %></p>
-
-## Filter List
-
-Currently these filters are available:
-
- - first
- - last
- - capitalize
- - downcase
- - upcase
- - sort
- - sort_by:'prop'
- - size
- - length
- - plus:n
- - minus:n
- - times:n
- - divided_by:n
- - join:'val'
- - truncate:n
- - truncate_words:n
- - replace:pattern,substitution
- - prepend:val
- - append:val
- - map:'prop'
- - reverse
- - get:'prop'
-
-## client-side support
-
- include `./ejs.js` or `./ejs.min.js` and `require("ejs").compile(str)`.
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2009-2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
14 node_modules/ejs/benchmark.js
@@ -1,14 +0,0 @@
-
-
-var ejs = require('./lib/ejs'),
- str = '<% if (foo) { %><p><%= foo %></p><% } %>',
- times = 50000;
-
-console.log('rendering ' + times + ' times');
-
-var start = new Date;
-while (times--) {
- ejs.render(str, { cache: true, filename: 'test', locals: { foo: 'bar' }});
-}
-
-console.log('took ' + (new Date - start) + 'ms');
View
531 node_modules/ejs/ejs.js
@@ -1,531 +0,0 @@
-
-// CommonJS require()
-
-function require(p){
- var path = require.resolve(p)
- , mod = require.modules[path];
- if (!mod) throw new Error('failed to require "' + p + '"');
- if (!mod.exports) {
- mod.exports = {};
- mod.call(mod.exports, mod, mod.exports, require.relative(path));
- }
- return mod.exports;
- }
-
-require.modules = {};
-
-require.resolve = function (path){
- var orig = path
- , reg = path + '.js'
- , index = path + '/index.js';
- return require.modules[reg] && reg
- || require.modules[index] && index
- || orig;
- };
-
-require.register = function (path, fn){
- require.modules[path] = fn;
- };
-
-require.relative = function (parent) {
- return function(p){
- if ('.' != p[0]) return require(p);
-
- var path = parent.split('/')
- , segs = p.split('/');
- path.pop();
-
- for (var i = 0; i < segs.length; i++) {
- var seg = segs[i];
- if ('..' == seg) path.pop();
- else if ('.' != seg) path.push(seg);
- }
-
- return require(path.join('/'));
- };
- };
-
-
-require.register("ejs.js", function(module, exports, require){
-
-/*!
- * EJS
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * Module dependencies.
- */
-
-var utils = require('./utils');
-
-/**
- * Library version.
- */
-
-exports.version = '0.4.2';
-
-/**
- * Filters.
- *
- * @type Object
- */
-
-var filters = exports.filters = require('./filters');
-
-/**
- * Intermediate js cache.
- *
- * @type Object
- */
-
-var cache = {};
-
-/**
- * Clear intermediate js cache.
- *
- * @api public
- */
-
-exports.clearCache = function(){
- cache = {};
-};
-
-/**
- * Translate filtered code into function calls.
- *
- * @param {String} js
- * @return {String}
- * @api private
- */
-
-function filtered(js) {
- return js.substr(1).split('|').reduce(function(js, filter){
- var parts = filter.split(':')
- , name = parts.shift()
- , args = parts.shift() || '';
- if (args) args = ', ' + args;
- return 'filters.' + name + '(' + js + args + ')';
- });
-};
-
-/**
- * Re-throw the given `err` in context to the
- * `str` of ejs, `filename`, and `lineno`.
- *
- * @param {Error} err
- * @param {String} str
- * @param {String} filename
- * @param {String} lineno
- * @api private
- */
-
-function rethrow(err, str, filename, lineno){
- var lines = str.split('\n')
- , start = Math.max(lineno - 3, 0)
- , end = Math.min(lines.length, lineno + 3);
-
- // Error context
- var context = lines.slice(start, end).map(function(line, i){
- var curr = i + start + 1;
- return (curr == lineno ? ' >> ' : ' ')
- + curr
- + '| '
- + line;
- }).join('\n');
-
- // Alter exception message
- err.path = filename;
- err.message = (filename || 'ejs') + ':'
- + lineno + '\n'
- + context + '\n\n'
- + err.message;
-
- throw err;
-}
-
-/**
- * Parse the given `str` of ejs, returning the function body.
- *
- * @param {String} str
- * @return {String}
- * @api public
- */
-
-var parse = exports.parse = function(str, options){
- var options = options || {}
- , open = options.open || exports.open || '<%'
- , close = options.close || exports.close || '%>';
-
- var buf = [
- "var buf = [];"
- , "\nwith (locals) {"
- , "\n buf.push('"
- ];
-
- var lineno = 1;
-
- for (var i = 0, len = str.length; i < len; ++i) {
- if (str.slice(i, open.length + i) == open) {
- i += open.length
-
- var prefix, postfix, line = '__stack.lineno=' + lineno;
- switch (str[i]) {
- case '=':
- prefix = "', escape((" + line + ', ';
- postfix = ")), '";
- ++i;
- break;
- case '-':
- prefix = "', (" + line + ', ';
- postfix = "), '";
- ++i;
- break;
- default:
- prefix = "');" + line + ';';
- postfix = "; buf.push('";
- }
-
- var start = i;
- var end = str.indexOf(close, i);
- var js = str.substring(i, end);
- var n = 0;
- while ((n = js.indexOf("\n", n)) > -1) {
- n++;
- lineno++;
- }
- if (js[0] == ':') js = filtered(js);
- buf.push(prefix, js, postfix);
- i += end - start + close.length - 1;
-
- } else if (str[i] == "\\") {
- buf.push("\\\\");
- } else if (str[i] == "'") {
- buf.push("\\'");
- } else if (str[i] == "\r") {
- buf.push(" ");
- } else if (str[i] == "\n") {
- buf.push("\\n");
- lineno++;
- } else {
- buf.push(str[i]);
- }
- }
-
- buf.push("');\n}\nreturn buf.join('');");
- return buf.join('');
-};
-
-/**
- * Compile the given `str` of ejs into a `Function`.
- *
- * @param {String} str
- * @param {Object} options
- * @return {Function}
- * @api public
- */
-
-var compile = exports.compile = function(str, options){
- options = options || {};
-
- var input = JSON.stringify(str)
- , filename = options.filename
- ? JSON.stringify(options.filename)
- : 'undefined';
-
- // Adds the fancy stack trace meta info
- str = [
- 'var __stack = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
- rethrow.toString(),
- 'try {',
- exports.parse(str, options),
- '} catch (err) {',
- ' rethrow(err, __stack.input, __stack.filename, __stack.lineno);',
- '}'
- ].join("\n");
-
- if (options.debug) console.log(str);
- var fn = new Function('locals, filters, escape', str);
- return function(locals){
- return fn.call(this, locals, filters, utils.escape);
- }
-};
-
-/**
- * Render the given `str` of ejs.
- *
- * Options:
- *
- * - `locals` Local variables object
- * - `cache` Compiled functions are cached, requires `filename`
- * - `filename` Used by `cache` to key caches
- * - `scope` Function execution context
- * - `debug` Output generated function body
- * - `open` Open tag, defaulting to "<%"
- * - `close` Closing tag, defaulting to "%>"
- *
- * @param {String} str
- * @param {Object} options
- * @return {String}
- * @api public
- */
-
-exports.render = function(str, options){
- var fn
- , options = options || {};
- if (options.cache) {
- if (options.filename) {
- fn = cache[options.filename] || (cache[options.filename] = compile(str, options));
- } else {
- throw new Error('"cache" option requires "filename".');
- }
- } else {
- fn = compile(str, options);
- }
- return fn.call(options.scope, options.locals || {});
-};
-
-/**
- * Expose to require().
- */
-
-if (require.extensions) {
- require.extensions['.ejs'] = function(module, filename) {
- source = require('fs').readFileSync(filename, 'utf-8');
- module._compile(compile(source, {}), filename);
- };
-} else if (require.registerExtension) {
- require.registerExtension('.ejs', function(src) {
- return compile(src, {});
- });
-}
-
-}); // module: ejs.js
-
-require.register("filters.js", function(module, exports, require){
-
-/*!
- * EJS - Filters
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * First element of the target `obj`.
- */
-
-exports.first = function(obj) {
- return obj[0];
-};
-
-/**
- * Last element of the target `obj`.
- */
-
-exports.last = function(obj) {
- return obj[obj.length - 1];
-};
-
-/**
- * Capitalize the first letter of the target `str`.
- */
-
-exports.capitalize = function(str){
- str = String(str);
- return str[0].toUpperCase() + str.substr(1, str.length);
-};
-
-/**
- * Downcase the target `str`.
- */
-
-exports.downcase = function(str){
- return String(str).toLowerCase();
-};
-
-/**
- * Uppercase the target `str`.
- */
-
-exports.upcase = function(str){
- return String(str).toUpperCase();
-};
-
-/**
- * Sort the target `obj`.
- */
-
-exports.sort = function(obj){
- return Object.create(obj).sort();
-};
-
-/**
- * Sort the target `obj` by the given `prop` ascending.
- */
-
-exports.sort_by = function(obj, prop){
- return Object.create(obj).sort(function(a, b){
- a = a[prop], b = b[prop];
- if (a > b) return 1;
- if (a < b) return -1;
- return 0;
- });
-};
-
-/**
- * Size or length of the target `obj`.
- */
-
-exports.size = exports.length = function(obj) {
- return obj.length;
-};
-
-/**
- * Add `a` and `b`.
- */
-
-exports.plus = function(a, b){
- return Number(a) + Number(b);
-};
-
-/**
- * Subtract `b` from `a`.
- */
-
-exports.minus = function(a, b){
- return Number(a) - Number(b);
-};
-
-/**
- * Multiply `a` by `b`.
- */
-
-exports.times = function(a, b){
- return Number(a) * Number(b);
-};
-
-/**
- * Divide `a` by `b`.
- */
-
-exports.divided_by = function(a, b){
- return Number(a) / Number(b);
-};
-
-/**
- * Join `obj` with the given `str`.
- */
-
-exports.join = function(obj, str){
- return obj.join(str || ', ');
-};
-
-/**
- * Truncate `str` to `len`.
- */
-
-exports.truncate = function(str, len){
- str = String(str);
- return str.substr(0, len);
-};
-
-/**
- * Truncate `str` to `n` words.
- */
-
-exports.truncate_words = function(str, n){
- var str = String(str)
- , words = str.split(/ +/);
- return words.slice(0, n).join(' ');
-};
-
-/**
- * Replace `pattern` with `substitution` in `str`.
- */
-
-exports.replace = function(str, pattern, substitution){
- return String(str).replace(pattern, substitution || '');
-};
-
-/**
- * Prepend `val` to `obj`.
- */
-
-exports.prepend = function(obj, val){
- return Array.isArray(obj)
- ? [val].concat(obj)
- : val + obj;
-};
-
-/**
- * Append `val` to `obj`.
- */
-
-exports.append = function(obj, val){
- return Array.isArray(obj)
- ? obj.concat(val)
- : obj + val;
-};
-
-/**
- * Map the given `prop`.
- */
-
-exports.map = function(arr, prop){
- return arr.map(function(obj){
- return obj[prop];
- });
-};
-
-/**
- * Reverse the given `obj`.
- */
-
-exports.reverse = function(obj){
- return Array.isArray(obj)
- ? obj.reverse()
- : String(obj).split('').reverse().join('');
-};
-
-/**
- * Get `prop` of the given `obj`.
- */
-
-exports.get = function(obj, prop){
- return obj[prop];
-};
-
-/**
- * Packs the given `obj` into json string
- */
-exports.json = function(obj){
- return JSON.stringify(obj);
-};
-}); // module: filters.js
-
-require.register("utils.js", function(module, exports, require){
-
-/*!
- * EJS
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * Escape the given string of `html`.
- *
- * @param {String} html
- * @return {String}
- * @api private
- */
-
-exports.escape = function(html){
- return String(html)
- .replace(/&(?!\w+;)/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;');
-};
-
-}); // module: utils.js
View
2  node_modules/ejs/ejs.min.js
@@ -1,2 +0,0 @@
-// CommonJS require()
-function require(p){var path=require.resolve(p),mod=require.modules[path];if(!mod)throw new Error('failed to require "'+p+'"');mod.exports||(mod.exports={},mod.call(mod.exports,mod,mod.exports,require.relative(path)));return mod.exports}require.modules={},require.resolve=function(path){var orig=path,reg=path+".js",index=path+"/index.js";return require.modules[reg]&&reg||require.modules[index]&&index||orig},require.register=function(path,fn){require.modules[path]=fn},require.relative=function(parent){return function(p){if("."!=p[0])return require(p);var path=parent.split("/"),segs=p.split("/");path.pop();for(var i=0;i<segs.length;i++){var seg=segs[i];".."==seg?path.pop():"."!=seg&&path.push(seg)}return require(path.join("/"))}},require.register("ejs.js",function(module,exports,require){var utils=require("./utils");exports.version="0.4.2";var filters=exports.filters=require("./filters"),cache={};exports.clearCache=function(){cache={}};function filtered(js){return js.substr(1).split("|").reduce(function(js,filter){var parts=filter.split(":"),name=parts.shift(),args=parts.shift()||"";args&&(args=", "+args);return"filters."+name+"("+js+args+")"})}function rethrow(err,str,filename,lineno){var lines=str.split("\n"),start=Math.max(lineno-3,0),end=Math.min(lines.length,lineno+3),context=lines.slice(start,end).map(function(line,i){var curr=i+start+1;return(curr==lineno?" >> ":" ")+curr+"| "+line}).join("\n");err.path=filename,err.message=(filename||"ejs")+":"+lineno+"\n"+context+"\n\n"+err.message;throw err}var parse=exports.parse=function(str,options){var options=options||{},open=options.open||exports.open||"<%",close=options.close||exports.close||"%>",buf=["var buf = [];","\nwith (locals) {","\n buf.push('"],lineno=1;for(var i=0,len=str.length;i<len;++i)if(str.slice(i,open.length+i)==open){i+=open.length;var prefix,postfix,line="__stack.lineno="+lineno;switch(str[i]){case"=":prefix="', escape(("+line+", ",postfix=")), '",++i;break;case"-":prefix="', ("+line+", ",postfix="), '",++i;break;default:prefix="');"+line+";",postfix="; buf.push('"}var start=i,end=str.indexOf(close,i),js=str.substring(i,end);js[0]==":"&&(js=filtered(js)),buf.push(prefix,js,postfix),i+=end-start+close.length-1}else str[i]=="\\"?buf.push("\\\\"):str[i]=="'"?buf.push("\\'"):str[i]=="\r"?buf.push(" "):str[i]=="\n"?(buf.push("\\n"),lineno++):buf.push(str[i]);buf.push("');\n}\nreturn buf.join('');");return buf.join("")},compile=exports.compile=function(str,options){options=options||{};var input=JSON.stringify(str),filename=options.filename?JSON.stringify(options.filename):"undefined";str=["var __stack = { lineno: 1, input: "+input+", filename: "+filename+" };",rethrow.toString(),"try {",exports.parse(str,options),"} catch (err) {"," rethrow(err, __stack.input, __stack.filename, __stack.lineno);","}"].join("\n"),options.debug&&console.log(str);var fn=new Function("locals, filters, escape",str);return function(locals){return fn.call(this,locals,filters,utils.escape)}};exports.render=function(str,options){var fn,options=options||{};if(options.cache)if(options.filename)fn=cache[options.filename]||(cache[options.filename]=compile(str,options));else throw new Error('"cache" option requires "filename".');else fn=compile(str,options);return fn.call(options.scope,options.locals||{})},require.extensions?require.extensions[".ejs"]=function(module,filename){source=require("fs").readFileSync(filename,"utf-8"),module._compile(compile(source,{}),filename)}:require.registerExtension&&require.registerExtension(".ejs",function(src){return compile(src,{})})}),require.register("filters.js",function(module,exports,require){exports.first=function(obj){return obj[0]},exports.last=function(obj){return obj[obj.length-1]},exports.capitalize=function(str){str=String(str);return str[0].toUpperCase()+str.substr(1,str.length)},exports.downcase=function(str){return String(str).toLowerCase()},exports.upcase=function(str){return String(str).toUpperCase()},exports.sort=function(obj){return Object.create(obj).sort()},exports.sort_by=function(obj,prop){return Object.create(obj).sort(function(a,b){a=a[prop],b=b[prop];if(a>b)return 1;if(a<b)return-1;return 0})},exports.size=exports.length=function(obj){return obj.length},exports.plus=function(a,b){return Number(a)+Number(b)},exports.minus=function(a,b){return Number(a)-Number(b)},exports.times=function(a,b){return Number(a)*Number(b)},exports.divided_by=function(a,b){return Number(a)/Number(b)},exports.join=function(obj,str){return obj.join(str||", ")},exports.truncate=function(str,len){str=String(str);return str.substr(0,len)},exports.truncate_words=function(str,n){var str=String(str),words=str.split(/ +/);return words.slice(0,n).join(" ")},exports.replace=function(str,pattern,substitution){return String(str).replace(pattern,substitution||"")},exports.prepend=function(obj,val){return Array.isArray(obj)?[val].concat(obj):val+obj},exports.append=function(obj,val){return Array.isArray(obj)?obj.concat(val):obj+val},exports.map=function(arr,prop){return arr.map(function(obj){return obj[prop]})},exports.reverse=function(obj){return Array.isArray(obj)?obj.reverse():String(obj).split("").reverse().join("")},exports.get=function(obj,prop){return obj[prop]},exports.json=function(obj){return JSON.stringify(obj)}}),require.register("utils.js",function(module,exports,require){exports.escape=function(html){return String(html).replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}})
View
5 node_modules/ejs/examples/client.html
@@ -1,5 +0,0 @@
-<html>
- <head>
- <script src="../ejs.js"></script>
- </head>
-</html>
View
7 node_modules/ejs/examples/list.ejs
@@ -1,7 +0,0 @@
-<% if (names.length) { %>
- <ul>
- <% names.forEach(function(name){ %>
- <li><%= name %></li>
- <% }) %>
- </ul>
-<% } %>
View
16 node_modules/ejs/examples/list.js
@@ -1,16 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var ejs = require('../')
- , fs = require('fs')
- , str = fs.readFileSync(__dirname + '/list.ejs', 'utf8');
-
-var ret = ejs.render(str, {
- locals: {
- names: ['foo', 'bar', 'baz']
- }
-});
-
-console.log(ret);
View
2  node_modules/ejs/index.js
@@ -1,2 +0,0 @@
-
-module.exports = require('./lib/ejs');
View
251 node_modules/ejs/lib/ejs.js
@@ -1,251 +0,0 @@
-
-/*!
- * EJS
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * Module dependencies.
- */
-
-var utils = require('./utils');
-
-/**
- * Library version.
- */
-
-exports.version = '0.4.3';
-
-/**
- * Filters.
- *
- * @type Object
- */
-
-var filters = exports.filters = require('./filters');
-
-/**
- * Intermediate js cache.
- *
- * @type Object
- */
-
-var cache = {};
-
-/**
- * Clear intermediate js cache.
- *
- * @api public
- */
-
-exports.clearCache = function(){
- cache = {};
-};
-
-/**
- * Translate filtered code into function calls.
- *
- * @param {String} js
- * @return {String}
- * @api private
- */
-
-function filtered(js) {
- return js.substr(1).split('|').reduce(function(js, filter){
- var parts = filter.split(':')
- , name = parts.shift()
- , args = parts.shift() || '';
- if (args) args = ', ' + args;
- return 'filters.' + name + '(' + js + args + ')';
- });
-};
-
-/**
- * Re-throw the given `err` in context to the
- * `str` of ejs, `filename`, and `lineno`.
- *
- * @param {Error} err
- * @param {String} str
- * @param {String} filename
- * @param {String} lineno
- * @api private
- */
-
-function rethrow(err, str, filename, lineno){
- var lines = str.split('\n')
- , start = Math.max(lineno - 3, 0)
- , end = Math.min(lines.length, lineno + 3);
-
- // Error context
- var context = lines.slice(start, end).map(function(line, i){
- var curr = i + start + 1;
- return (curr == lineno ? ' >> ' : ' ')
- + curr
- + '| '
- + line;
- }).join('\n');
-
- // Alter exception message
- err.path = filename;
- err.message = (filename || 'ejs') + ':'
- + lineno + '\n'
- + context + '\n\n'
- + err.message;
-
- throw err;
-}
-
-/**
- * Parse the given `str` of ejs, returning the function body.
- *
- * @param {String} str
- * @return {String}
- * @api public
- */
-
-var parse = exports.parse = function(str, options){
- var options = options || {}
- , open = options.open || exports.open || '<%'
- , close = options.close || exports.close || '%>';
-
- var buf = [
- "var buf = [];"
- , "\nwith (locals) {"
- , "\n buf.push('"
- ];
-
- var lineno = 1;
-
- for (var i = 0, len = str.length; i < len; ++i) {
- if (str.slice(i, open.length + i) == open) {
- i += open.length
-
- var prefix, postfix, line = '__stack.lineno=' + lineno;
- switch (str[i]) {
- case '=':
- prefix = "', escape((" + line + ', ';
- postfix = ")), '";
- ++i;
- break;
- case '-':
- prefix = "', (" + line + ', ';
- postfix = "), '";
- ++i;
- break;
- default:
- prefix = "');" + line + ';';
- postfix = "; buf.push('";
- }
-
- var end = str.indexOf(close, i)
- , js = str.substring(i, end)
- , start = i
- , n = 0;
-
- while (~(n = js.indexOf("\n", n))) n++, lineno++;
- if (js[0] == ':') js = filtered(js);
- buf.push(prefix, js, postfix);
- i += end - start + close.length - 1;
-
- } else if (str[i] == "\\") {
- buf.push("\\\\");
- } else if (str[i] == "'") {
- buf.push("\\'");
- } else if (str[i] == "\r") {
- buf.push(" ");
- } else if (str[i] == "\n") {
- buf.push("\\n");
- lineno++;
- } else {
- buf.push(str[i]);
- }
- }
-
- buf.push("');\n}\nreturn buf.join('');");
- return buf.join('');
-};
-
-/**
- * Compile the given `str` of ejs into a `Function`.
- *
- * @param {String} str
- * @param {Object} options
- * @return {Function}
- * @api public
- */
-
-var compile = exports.compile = function(str, options){
- options = options || {};
-
- var input = JSON.stringify(str)
- , filename = options.filename
- ? JSON.stringify(options.filename)
- : 'undefined';
-
- // Adds the fancy stack trace meta info
- str = [
- 'var __stack = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
- rethrow.toString(),
- 'try {',
- exports.parse(str, options),
- '} catch (err) {',
- ' rethrow(err, __stack.input, __stack.filename, __stack.lineno);',
- '}'
- ].join("\n");
-
- if (options.debug) console.log(str);
- var fn = new Function('locals, filters, escape', str);
- return function(locals){
- return fn.call(this, locals, filters, utils.escape);
- }
-};
-
-/**
- * Render the given `str` of ejs.
- *
- * Options:
- *
- * - `locals` Local variables object
- * - `cache` Compiled functions are cached, requires `filename`
- * - `filename` Used by `cache` to key caches
- * - `scope` Function execution context
- * - `debug` Output generated function body
- * - `open` Open tag, defaulting to "<%"
- * - `close` Closing tag, defaulting to "%>"
- *
- * @param {String} str
- * @param {Object} options
- * @return {String}
- * @api public
- */
-
-exports.render = function(str, options){
- var fn
- , options = options || {};
- if (options.cache) {
- if (options.filename) {
- fn = cache[options.filename] || (cache[options.filename] = compile(str, options));
- } else {
- throw new Error('"cache" option requires "filename".');
- }
- } else {
- fn = compile(str, options);
- }
- return fn.call(options.scope, options.locals || {});
-};
-
-/**
- * Expose to require().
- */
-
-if (require.extensions) {
- require.extensions['.ejs'] = function(module, filename) {
- source = require('fs').readFileSync(filename, 'utf-8');
- module._compile(compile(source, {}), filename);
- };
-} else if (require.registerExtension) {
- require.registerExtension('.ejs', function(src) {
- return compile(src, {});
- });
-}
View
198 node_modules/ejs/lib/filters.js
@@ -1,198 +0,0 @@
-
-/*!
- * EJS - Filters
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * First element of the target `obj`.
- */
-
-exports.first = function(obj) {
- return obj[0];
-};
-
-/**
- * Last element of the target `obj`.
- */
-
-exports.last = function(obj) {
- return obj[obj.length - 1];
-};
-
-/**
- * Capitalize the first letter of the target `str`.
- */
-
-exports.capitalize = function(str){
- str = String(str);
- return str[0].toUpperCase() + str.substr(1, str.length);
-};
-
-/**
- * Downcase the target `str`.
- */
-
-exports.downcase = function(str){
- return String(str).toLowerCase();
-};
-
-/**
- * Uppercase the target `str`.
- */
-
-exports.upcase = function(str){
- return String(str).toUpperCase();
-};
-
-/**
- * Sort the target `obj`.
- */
-
-exports.sort = function(obj){
- return Object.create(obj).sort();
-};
-
-/**
- * Sort the target `obj` by the given `prop` ascending.
- */
-
-exports.sort_by = function(obj, prop){
- return Object.create(obj).sort(function(a, b){
- a = a[prop], b = b[prop];
- if (a > b) return 1;
- if (a < b) return -1;
- return 0;
- });
-};
-
-/**
- * Size or length of the target `obj`.
- */
-
-exports.size = exports.length = function(obj) {
- return obj.length;
-};
-
-/**
- * Add `a` and `b`.
- */
-
-exports.plus = function(a, b){
- return Number(a) + Number(b);
-};
-
-/**
- * Subtract `b` from `a`.
- */
-
-exports.minus = function(a, b){
- return Number(a) - Number(b);
-};
-
-/**
- * Multiply `a` by `b`.
- */
-
-exports.times = function(a, b){
- return Number(a) * Number(b);
-};
-
-/**
- * Divide `a` by `b`.
- */
-
-exports.divided_by = function(a, b){
- return Number(a) / Number(b);
-};
-
-/**
- * Join `obj` with the given `str`.
- */
-
-exports.join = function(obj, str){
- return obj.join(str || ', ');
-};
-
-/**
- * Truncate `str` to `len`.
- */
-
-exports.truncate = function(str, len){
- str = String(str);
- return str.substr(0, len);
-};
-
-/**
- * Truncate `str` to `n` words.
- */
-
-exports.truncate_words = function(str, n){
- var str = String(str)
- , words = str.split(/ +/);
- return words.slice(0, n).join(' ');
-};
-
-/**
- * Replace `pattern` with `substitution` in `str`.
- */
-
-exports.replace = function(str, pattern, substitution){
- return String(str).replace(pattern, substitution || '');
-};
-
-/**
- * Prepend `val` to `obj`.
- */
-
-exports.prepend = function(obj, val){
- return Array.isArray(obj)
- ? [val].concat(obj)
- : val + obj;
-};
-
-/**
- * Append `val` to `obj`.
- */
-
-exports.append = function(obj, val){
- return Array.isArray(obj)
- ? obj.concat(val)
- : obj + val;
-};
-
-/**
- * Map the given `prop`.
- */
-
-exports.map = function(arr, prop){
- return arr.map(function(obj){
- return obj[prop];
- });
-};
-
-/**
- * Reverse the given `obj`.
- */
-
-exports.reverse = function(obj){
- return Array.isArray(obj)
- ? obj.reverse()
- : String(obj).split('').reverse().join('');
-};
-
-/**
- * Get `prop` of the given `obj`.
- */
-
-exports.get = function(obj, prop){
- return obj[prop];
-};
-
-/**
- * Packs the given `obj` into json string
- */
-exports.json = function(obj){
- return JSON.stringify(obj);
-};
View
23 node_modules/ejs/lib/utils.js
@@ -1,23 +0,0 @@
-
-/*!
- * EJS
- * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
- * MIT Licensed
- */
-
-/**
- * Escape the given string of `html`.
- *
- * @param {String} html
- * @return {String}
- * @api private
- */
-
-exports.escape = function(html){
- return String(html)
- .replace(/&(?!\w+;)/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;');
-};
-
View
8 node_modules/ejs/package.json
@@ -1,8 +0,0 @@
-{
- "name": "ejs",
- "description": "Embedded JavaScript templates",
- "version": "0.4.3",
- "author": "TJ Holowaychuk <tj@vision-media.ca>",
- "keywords": ["template", "engine", "ejs"],
- "main": "./lib/ejs.js"
-}
View
173 node_modules/ejs/support/compile.js
@@ -1,173 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var fs = require('fs');
-
-/**
- * Arguments.
- */
-
-var args = process.argv.slice(2)
- , pending = args.length
- , files = {};
-
-console.log('');
-
-// parse arguments
-
-args.forEach(function(file){
- var mod = file.replace('lib/', '');
- fs.readFile(file, 'utf8', function(err, js){
- if (err) throw err;
- console.log(' \033[90mcompile : \033[0m\033[36m%s\033[0m', file);
- files[file] = parse(js);
- --pending || compile();
- });
-});
-
-/**
- * Parse the given `js`.
- */
-
-function parse(js) {
- return parseInheritance(parseConditionals(js));
-}
-
-/**
- * Parse __proto__.
- */
-
-function parseInheritance(js) {
- return js
- .replace(/^ *(\w+)\.prototype\.__proto__ * = *(\w+)\.prototype *;?/gm, function(_, child, parent){
- return child + '.prototype = new ' + parent + ';\n'
- + child + '.prototype.constructor = '+ child + ';\n';
- });
-}
-
-/**
- * Parse the given `js`, currently supporting:
- *
- * 'if' ['node' | 'browser']
- * 'end'
- *
- */
-
-function parseConditionals(js) {
- var lines = js.split('\n')
- , len = lines.length
- , buffer = true
- , browser = false
- , buf = []
- , line
- , cond;
-
- for (var i = 0; i < len; ++i) {
- line = lines[i];
- if (/^ *\/\/ *if *(node|browser)/gm.exec(line)) {
- cond = RegExp.$1;
- buffer = browser = 'browser' == cond;
- } else if (/^ *\/\/ *end/.test(line)) {
- buffer = true;
- browser = false;
- } else if (browser) {
- buf.push(line.replace(/^( *)\/\//, '$1'));
- } else if (buffer) {
- buf.push(line);
- }
- }
-
- return buf.join('\n');
-}
-
-/**
- * Compile the files.
- */
-
-function compile() {
- var buf = '';
- buf += '\n// CommonJS require()\n\n';
- buf += browser.require + '\n\n';
- buf += 'require.modules = {};\n\n';
- buf += 'require.resolve = ' + browser.resolve + ';\n\n';
- buf += 'require.register = ' + browser.register + ';\n\n';
- buf += 'require.relative = ' + browser.relative + ';\n\n';
- args.forEach(function(file){
- var js = files[file];
- file = file.replace('lib/', '');
- buf += '\nrequire.register("' + file + '", function(module, exports, require){\n';
- buf += js;
- buf += '\n}); // module: ' + file + '\n';
- });
- fs.writeFile('ejs.js', buf, function(err){
- if (err) throw err;
- console.log(' \033[90m create : \033[0m\033[36m%s\033[0m', 'ejs.js');
- console.log();
- });
-}
-
-// refactored version of weepy's
-// https://github.com/weepy/brequire/blob/master/browser/brequire.js
-
-var browser = {
-
- /**
- * Require a module.
- */
-
- require: function require(p){
- var path = require.resolve(p)
- , mod = require.modules[path];
- if (!mod) throw new Error('failed to require "' + p + '"');
- if (!mod.exports) {
- mod.exports = {};
- mod.call(mod.exports, mod, mod.exports, require.relative(path));
- }
- return mod.exports;
- },
-
- /**
- * Resolve module path.
- */
-
- resolve: function(path){
- var orig = path
- , reg = path + '.js'
- , index = path + '/index.js';
- return require.modules[reg] && reg
- || require.modules[index] && index
- || orig;
- },
-
- /**
- * Return relative require().
- */
-
- relative: function(parent) {
- return function(p){
- if ('.' != p[0]) return require(p);
-
- var path = parent.split('/')
- , segs = p.split('/');
- path.pop();
-
- for (var i = 0; i < segs.length; i++) {
- var seg = segs[i];
- if ('..' == seg) path.pop();
- else if ('.' != seg) path.push(seg);
- }
-
- return require(path.join('/'));
- };
- },
-
- /**
- * Register a module.
- */
-
- register: function(path, fn){
- require.modules[path] = fn;
- }
-};
View
268 node_modules/ejs/test/ejs.test.js
@@ -1,268 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var ejs = require('ejs');
-
-module.exports = {
- 'test .version': function(assert){
- assert.ok(/^\d+\.\d+\.\d+$/.test(ejs.version), 'Test .version format');
- },
-
- 'test html': function(assert){
- assert.equal('<p>yay</p>', ejs.render('<p>yay</p>'));
- },
-
- 'test buffered code': function(assert){
- var html = '<p>tj</p>',
- str = '<p><%= name %></p>',
- locals = { name: 'tj' };
- assert.equal(html, ejs.render(str, { locals: locals }));
- },
-
- 'test unbuffered code': function(assert){
- var html = '<p>tj</p>',
- str = '<% if (name) { %><p><%= name %></p><% } %>',
- locals = { name: 'tj' };
- assert.equal(html, ejs.render(str, { locals: locals }));
- },
-
- 'test `scope` option': function(assert){
- var html = '<p>tj</p>',
- str = '<p><%= this %></p>';
- assert.equal(html, ejs.render(str, { scope: 'tj' }));
- },
-
- 'test escaping': function(assert){
- assert.equal('&lt;script&gt;', ejs.render('<%= "<script>" %>'));
- assert.equal('<script>', ejs.render('<%- "<script>" %>'));
- },
-
- 'test newlines': function(assert){
- var html = '\n<p>tj</p>\n<p>tj@sencha.com</p>',
- str = '<% if (name) { %>\n<p><%= name %></p>\n<p><%= email %></p><% } %>',
- locals = { name: 'tj', email: 'tj@sencha.com' };
- assert.equal(html, ejs.render(str, { locals: locals }));
- },
-
- 'test single quotes': function(assert){
- var html = '<p>WAHOO</p>',
- str = "<p><%= up('wahoo') %></p>",
- locals = { up: function(str){ return str.toUpperCase(); }};
- assert.equal(html, ejs.render(str, { locals: locals }));
- },
-
- 'test single quotes in the html': function(assert){
- var html = '<p>WAHOO that\'s cool</p>',
- str = '<p><%= up(\'wahoo\') %> that\'s cool</p>',
- locals = { up: function(str){ return str.toUpperCase(); }};
- assert.equal(html, ejs.render(str, { locals: locals }));
- },
-
- 'test multiple single quotes': function(assert) {
- var html = "<p>couldn't shouldn't can't</p>",
- str = "<p>couldn't shouldn't can't</p>";
- assert.equal(html, ejs.render(str));
- },
-
- 'test single quotes inside tags': function(assert) {
- var html = '<p>string</p>',
- str = "<p><%= 'string' %></p>";
- assert.equal(html, ejs.render(str));
- },
-
- 'test back-slashes in the document': function(assert) {
- var html = "<p>backslash: '\\'</p>",
- str = "<p>backslash: '\\'</p>";
- assert.equal(html, ejs.render(str));
- },
-
- 'test double quotes': function(assert){
- var html = '<p>WAHOO</p>',
- str = '<p><%= up("wahoo") %></p>',
- locals = { up: function(str){ return str.toUpperCase(); }};
- assert.equal(html, ejs.render(str, { locals: locals }));
- },
-
- 'test multiple double quotes': function(assert) {
- var html = '<p>just a "test" wahoo</p>',
- str = '<p>just a "test" wahoo</p>';
- assert.equal(html, ejs.render(str));
- },
-
- 'test whitespace': function(assert){
- var html = '<p>foo</p>',
- str = '<p><%="foo"%></p>';
- assert.equal(html, ejs.render(str));
-
- var html = '<p>foo</p>',
- str = '<p><%=bar%></p>';
- assert.equal(html, ejs.render(str, { locals: { bar: 'foo' }}));
- },
-
- 'test custom tags': function(assert){
- var html = '<p>foo</p>',
- str = '<p>{{= "foo" }}</p>';
-
- assert.equal(html, ejs.render(str, {
- open: '{{',
- close: '}}'
- }));
-
- var html = '<p>foo</p>',
- str = '<p><?= "foo" ?></p>';
-
- assert.equal(html, ejs.render(str, {
- open: '<?',
- close: '?>'
- }));
- },
-
- 'test custom tags over 2 chars': function(assert){
- var html = '<p>foo</p>',
- str = '<p>{{{{= "foo" }>>}</p>';
-
- assert.equal(html, ejs.render(str, {
- open: '{{{{',
- close: '}>>}'
- }));
-
- var html = '<p>foo</p>',
- str = '<p><??= "foo" ??></p>';
-
- assert.equal(html, ejs.render(str, {
- open: '<??',
- close: '??>'
- }));
- },
-
- 'test global custom tags': function(assert){
- var html = '<p>foo</p>',
- str = '<p>{{= "foo" }}</p>';
- ejs.open = '{{';
- ejs.close = '}}';
- assert.equal(html, ejs.render(str));
- delete ejs.open;
- delete ejs.close;
- },
-
- 'test iteration': function(assert){
- var html = '<p>foo</p>',
- str = '<% for (var key in items) { %>'
- + '<p><%= items[key] %></p>'
- + '<% } %>';
- assert.equal(html, ejs.render(str, {
- locals: {
- items: ['foo']
- }
- }));
-
- var html = '<p>foo</p>',
- str = '<% items.forEach(function(item){ %>'
- + '<p><%= item %></p>'
- + '<% }) %>';
- assert.equal(html, ejs.render(str, {
- locals: {
- items: ['foo']
- }
- }));
- },
-
- 'test filter support': function(assert){
- var html = 'Zab',
- str = '<%=: items | reverse | first | reverse | capitalize %>';
- assert.equal(html, ejs.render(str, {
- locals: {
- items: ['foo', 'bar', 'baz']
- }
- }));
- },
-
- 'test filter argument support': function(assert){
- var html = 'tj, guillermo',
- str = '<%=: users | map:"name" | join:", " %>';
- assert.equal(html, ejs.render(str, {
- locals: {
- users: [
- { name: 'tj' },
- { name: 'guillermo' }
- ]
- }
- }));
- },
-
- 'test sort_by filter': function(assert){
- var html = 'tj',
- str = '<%=: users | sort_by:"name" | last | get:"name" %>';
- assert.equal(html, ejs.render(str, {
- locals: {
- users: [
- { name: 'guillermo' },
- { name: 'tj' },
- { name: 'mape' }
- ]
- }
- }));
- },
-
- 'test custom filters': function(assert){
- var html = 'Welcome Tj Holowaychuk',
- str = '<%=: users | first | greeting %>';
-
- ejs.filters.greeting = function(user){
- return 'Welcome ' + user.first + ' ' + user.last + '';
- };
-
- assert.equal(html, ejs.render(str, {
- locals: {
- users: [
- { first: 'Tj', last: 'Holowaychuk' }
- ]
- }
- }));
- },
-
- 'test useful stack traces': function(assert){
- var str = [
- "A little somethin'",