snowball 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (589) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +1 -3
  3. data/{lib/snowball → bin}/roll.js +0 -0
  4. data/lib/snowball/roller.rb +1 -1
  5. data/lib/snowball/version.rb +1 -1
  6. data/node_modules/.bin/browserify +161 -0
  7. data/node_modules/.bin/cake +7 -0
  8. data/node_modules/.bin/coffee +7 -0
  9. data/node_modules/.bin/jade +168 -0
  10. data/node_modules/browserify/.travis.yml +4 -0
  11. data/node_modules/browserify/LICENSE +63 -0
  12. data/node_modules/browserify/README.markdown +172 -0
  13. data/node_modules/browserify/bin/cmd.js +161 -0
  14. data/node_modules/browserify/builtins/__browserify_process.js +55 -0
  15. data/node_modules/browserify/builtins/assert.js +314 -0
  16. data/node_modules/browserify/builtins/child_process.js +2 -0
  17. data/node_modules/browserify/builtins/events.js +178 -0
  18. data/node_modules/browserify/builtins/fs.js +1 -0
  19. data/node_modules/browserify/builtins/https.js +1 -0
  20. data/node_modules/browserify/builtins/net.js +1 -0
  21. data/node_modules/browserify/builtins/path.js +175 -0
  22. data/node_modules/browserify/builtins/querystring.js +250 -0
  23. data/node_modules/browserify/builtins/stream.js +119 -0
  24. data/node_modules/browserify/builtins/string_decoder.js +161 -0
  25. data/node_modules/browserify/builtins/sys.js +1 -0
  26. data/node_modules/browserify/builtins/timers.js +39 -0
  27. data/node_modules/browserify/builtins/tls.js +1 -0
  28. data/node_modules/browserify/builtins/tty.js +2 -0
  29. data/node_modules/browserify/builtins/url.js +604 -0
  30. data/node_modules/browserify/builtins/util.js +351 -0
  31. data/node_modules/browserify/example/debug/browserify.js +219 -0
  32. data/node_modules/browserify/example/debug/build.sh +3 -0
  33. data/node_modules/browserify/example/debug/index.html +7 -0
  34. data/node_modules/browserify/example/debug/js/entry.js +2 -0
  35. data/node_modules/browserify/example/debug/js/thrower.js +3 -0
  36. data/node_modules/browserify/example/debug/server.js +9 -0
  37. data/node_modules/browserify/example/simple-build/browserify.js +368 -0
  38. data/node_modules/browserify/example/simple-build/build.sh +3 -0
  39. data/node_modules/browserify/example/simple-build/index.html +9 -0
  40. data/node_modules/browserify/example/simple-build/js/bar.js +3 -0
  41. data/node_modules/browserify/example/simple-build/js/entry.js +5 -0
  42. data/node_modules/browserify/example/simple-build/js/foo.js +5 -0
  43. data/node_modules/browserify/example/simple-build/server.js +9 -0
  44. data/node_modules/browserify/example/test/b.js +5 -0
  45. data/node_modules/browserify/example/test/bar.js +3 -0
  46. data/node_modules/browserify/example/test/foo.js +3 -0
  47. data/node_modules/browserify/example/test/m.js +3 -0
  48. data/node_modules/browserify/example/test/n.js +3 -0
  49. data/node_modules/browserify/example/using-http/bundle.js +813 -0
  50. data/node_modules/browserify/example/using-http/entry.js +25 -0
  51. data/node_modules/browserify/example/using-http/index.html +9 -0
  52. data/node_modules/browserify/example/using-http/server.js +28 -0
  53. data/node_modules/browserify/index.js +202 -0
  54. data/node_modules/browserify/lib/watch.js +75 -0
  55. data/node_modules/browserify/lib/wrap.js +580 -0
  56. data/node_modules/browserify/lib/wrappers.js +10 -0
  57. data/node_modules/browserify/node_modules/buffer-browserify/.npmignore +1 -0
  58. data/node_modules/browserify/node_modules/buffer-browserify/README.md +11 -0
  59. data/node_modules/browserify/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
  60. data/node_modules/browserify/node_modules/buffer-browserify/index.js +1317 -0
  61. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
  62. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
  63. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/package.json +30 -0
  64. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
  65. data/node_modules/browserify/node_modules/buffer-browserify/package.json +46 -0
  66. data/node_modules/browserify/node_modules/buffer-browserify/test/buffer.js +218 -0
  67. data/node_modules/browserify/node_modules/commondir/README.markdown +45 -0
  68. data/node_modules/browserify/node_modules/commondir/example/base.js +3 -0
  69. data/node_modules/browserify/node_modules/commondir/example/dir.js +3 -0
  70. data/node_modules/browserify/node_modules/commondir/index.js +29 -0
  71. data/node_modules/browserify/node_modules/commondir/package.json +47 -0
  72. data/node_modules/browserify/node_modules/commondir/test/dirs.js +66 -0
  73. data/node_modules/browserify/node_modules/crypto-browserify/.travis.yml +4 -0
  74. data/node_modules/browserify/node_modules/crypto-browserify/example/bundle.js +637 -0
  75. data/node_modules/browserify/node_modules/crypto-browserify/example/index.html +12 -0
  76. data/node_modules/browserify/node_modules/crypto-browserify/example/test.js +4 -0
  77. data/node_modules/browserify/node_modules/crypto-browserify/index.js +74 -0
  78. data/node_modules/browserify/node_modules/crypto-browserify/md5.js +384 -0
  79. data/node_modules/browserify/node_modules/crypto-browserify/package.json +33 -0
  80. data/node_modules/browserify/node_modules/crypto-browserify/readme.markdown +20 -0
  81. data/node_modules/browserify/node_modules/crypto-browserify/rng.js +37 -0
  82. data/node_modules/browserify/node_modules/crypto-browserify/sha.js +210 -0
  83. data/node_modules/browserify/node_modules/crypto-browserify/test/simple.js +35 -0
  84. data/node_modules/browserify/node_modules/deputy/.travis.yml +4 -0
  85. data/node_modules/browserify/node_modules/deputy/README.markdown +55 -0
  86. data/node_modules/browserify/node_modules/deputy/example/cache.js +5 -0
  87. data/node_modules/browserify/node_modules/deputy/index.js +46 -0
  88. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/.npmignore +2 -0
  89. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/.travis.yml +5 -0
  90. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/LICENSE +21 -0
  91. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/examples/pow.js +6 -0
  92. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/index.js +82 -0
  93. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/package.json +34 -0
  94. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/readme.markdown +63 -0
  95. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/chmod.js +38 -0
  96. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/clobber.js +37 -0
  97. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/mkdirp.js +28 -0
  98. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm.js +32 -0
  99. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm_sync.js +39 -0
  100. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/race.js +41 -0
  101. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/rel.js +32 -0
  102. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return.js +25 -0
  103. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return_sync.js +24 -0
  104. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/root.js +18 -0
  105. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/sync.js +32 -0
  106. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask.js +28 -0
  107. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask_sync.js +32 -0
  108. data/node_modules/browserify/node_modules/deputy/package.json +47 -0
  109. data/node_modules/browserify/node_modules/deputy/test/cache.js +58 -0
  110. data/node_modules/browserify/node_modules/detective/.travis.yml +4 -0
  111. data/node_modules/browserify/node_modules/detective/README.markdown +66 -0
  112. data/node_modules/browserify/node_modules/detective/example/strings.js +6 -0
  113. data/node_modules/browserify/node_modules/detective/example/strings_src.js +3 -0
  114. data/node_modules/browserify/node_modules/detective/index.js +60 -0
  115. data/node_modules/browserify/node_modules/detective/node_modules/.bin/esparse +42 -0
  116. data/node_modules/browserify/node_modules/detective/node_modules/esprima/.travis.yml +5 -0
  117. data/node_modules/browserify/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
  118. data/node_modules/browserify/node_modules/detective/node_modules/esprima/README.md +74 -0
  119. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  120. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  121. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  122. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/json2.js +487 -0
  123. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/style.css +164 -0
  124. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  125. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  126. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview.css +7 -0
  127. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  128. data/node_modules/browserify/node_modules/detective/node_modules/esprima/bin/esparse.js +42 -0
  129. data/node_modules/browserify/node_modules/detective/node_modules/esprima/changes +92 -0
  130. data/node_modules/browserify/node_modules/detective/node_modules/esprima/cm +696 -0
  131. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/checkenv.js +42 -0
  132. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.html +82 -0
  133. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.js +170 -0
  134. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.html +106 -0
  135. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.js +123 -0
  136. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.css +82 -0
  137. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.html +352 -0
  138. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/precedence.html +225 -0
  139. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.html +120 -0
  140. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.js +71 -0
  141. data/node_modules/browserify/node_modules/detective/node_modules/esprima/esprima.js +3577 -0
  142. data/node_modules/browserify/node_modules/detective/node_modules/esprima/index.html +103 -0
  143. data/node_modules/browserify/node_modules/detective/node_modules/esprima/package.json +42 -0
  144. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  145. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  146. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  147. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  148. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  149. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  150. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  151. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  152. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  153. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  154. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  155. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  156. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  157. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  158. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  159. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  160. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  161. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  162. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/platform.js +878 -0
  163. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  164. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  165. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  166. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
  167. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.js +328 -0
  168. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.html +140 -0
  169. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.js +270 -0
  170. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
  171. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
  172. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
  173. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
  174. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.html +3617 -0
  175. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/index.html +36 -0
  176. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/reflect.js +403 -0
  177. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/run.js +66 -0
  178. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/test.js +16659 -0
  179. data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  180. data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/update-coverage.sh +28 -0
  181. data/node_modules/browserify/node_modules/detective/package.json +47 -0
  182. data/node_modules/browserify/node_modules/detective/test/both.js +11 -0
  183. data/node_modules/browserify/node_modules/detective/test/chained.js +9 -0
  184. data/node_modules/browserify/node_modules/detective/test/files/both.js +4 -0
  185. data/node_modules/browserify/node_modules/detective/test/files/chained.js +5 -0
  186. data/node_modules/browserify/node_modules/detective/test/files/nested.js +22 -0
  187. data/node_modules/browserify/node_modules/detective/test/files/skip.js +7 -0
  188. data/node_modules/browserify/node_modules/detective/test/files/strings.js +13 -0
  189. data/node_modules/browserify/node_modules/detective/test/files/word.js +13 -0
  190. data/node_modules/browserify/node_modules/detective/test/nested.js +9 -0
  191. data/node_modules/browserify/node_modules/detective/test/skip.js +9 -0
  192. data/node_modules/browserify/node_modules/detective/test/strings.js +9 -0
  193. data/node_modules/browserify/node_modules/detective/test/word.js +12 -0
  194. data/node_modules/browserify/node_modules/http-browserify/.npmignore +1 -0
  195. data/node_modules/browserify/node_modules/http-browserify/example/get/index.html +9 -0
  196. data/node_modules/browserify/node_modules/http-browserify/example/get/main.js +14 -0
  197. data/node_modules/browserify/node_modules/http-browserify/example/get/server.js +12 -0
  198. data/node_modules/browserify/node_modules/http-browserify/example/headers/index.html +9 -0
  199. data/node_modules/browserify/node_modules/http-browserify/example/headers/main.js +18 -0
  200. data/node_modules/browserify/node_modules/http-browserify/example/headers/server.js +15 -0
  201. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/data.json +139 -0
  202. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/index.html +9 -0
  203. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/main.js +13 -0
  204. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/.npmignore +2 -0
  205. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/.travis.yml +4 -0
  206. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  207. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
  208. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
  209. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/index.js +189 -0
  210. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
  211. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
  212. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
  213. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  214. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
  215. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +36 -0
  216. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
  217. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
  218. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
  219. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
  220. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/package.json +40 -0
  221. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/readme.markdown +145 -0
  222. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
  223. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +22 -0
  224. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
  225. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  226. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
  227. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/memory.js +69 -0
  228. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
  229. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
  230. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
  231. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
  232. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
  233. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
  234. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
  235. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
  236. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/server.js +10 -0
  237. data/node_modules/browserify/node_modules/http-browserify/example/post/index.html +9 -0
  238. data/node_modules/browserify/node_modules/http-browserify/example/post/main.js +16 -0
  239. data/node_modules/browserify/node_modules/http-browserify/example/post/server.js +19 -0
  240. data/node_modules/browserify/node_modules/http-browserify/example/streaming/index.html +9 -0
  241. data/node_modules/browserify/node_modules/http-browserify/example/streaming/main.js +16 -0
  242. data/node_modules/browserify/node_modules/http-browserify/example/streaming/server.js +21 -0
  243. data/node_modules/browserify/node_modules/http-browserify/index.js +59 -0
  244. data/node_modules/browserify/node_modules/http-browserify/lib/request.js +128 -0
  245. data/node_modules/browserify/node_modules/http-browserify/lib/response.js +119 -0
  246. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
  247. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/package.json +30 -0
  248. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
  249. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
  250. data/node_modules/browserify/node_modules/http-browserify/package.json +46 -0
  251. data/node_modules/browserify/node_modules/http-browserify/readme.markdown +128 -0
  252. data/node_modules/browserify/node_modules/nub/README.markdown +23 -0
  253. data/node_modules/browserify/node_modules/nub/index.js +64 -0
  254. data/node_modules/browserify/node_modules/nub/package.json +46 -0
  255. data/node_modules/browserify/node_modules/nub/test/by.js +51 -0
  256. data/node_modules/browserify/node_modules/nub/test/nub.js +46 -0
  257. data/node_modules/browserify/node_modules/resolve/.travis.yml +4 -0
  258. data/node_modules/browserify/node_modules/resolve/LICENSE +18 -0
  259. data/node_modules/browserify/node_modules/resolve/README.markdown +47 -0
  260. data/node_modules/browserify/node_modules/resolve/index.js +106 -0
  261. data/node_modules/browserify/node_modules/resolve/package.json +45 -0
  262. data/node_modules/browserify/node_modules/resolve/test/core.js +12 -0
  263. data/node_modules/browserify/node_modules/resolve/test/filter.js +15 -0
  264. data/node_modules/browserify/node_modules/resolve/test/mock.js +64 -0
  265. data/node_modules/browserify/node_modules/resolve/test/resolver.js +157 -0
  266. data/node_modules/browserify/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  267. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  268. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/package.json +3 -0
  269. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  270. data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  271. data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  272. data/node_modules/browserify/node_modules/resolve/test/resolver/cup.coffee +1 -0
  273. data/node_modules/browserify/node_modules/resolve/test/resolver/foo.js +1 -0
  274. data/node_modules/browserify/node_modules/resolve/test/resolver/mug.coffee +0 -0
  275. data/node_modules/browserify/node_modules/resolve/test/resolver/mug.js +0 -0
  276. data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  277. data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  278. data/node_modules/browserify/node_modules/syntax-error/.travis.yml +4 -0
  279. data/node_modules/browserify/node_modules/syntax-error/LICENSE +18 -0
  280. data/node_modules/browserify/node_modules/syntax-error/example/check.js +12 -0
  281. data/node_modules/browserify/node_modules/syntax-error/example/src.js +9 -0
  282. data/node_modules/browserify/node_modules/syntax-error/index.js +54 -0
  283. data/node_modules/browserify/node_modules/syntax-error/node_modules/.bin/esparse +42 -0
  284. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/.travis.yml +5 -0
  285. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/LICENSE.BSD +19 -0
  286. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/README.md +74 -0
  287. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  288. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  289. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  290. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/json2.js +487 -0
  291. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/style.css +164 -0
  292. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  293. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  294. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview.css +7 -0
  295. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  296. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/bin/esparse.js +42 -0
  297. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/changes +92 -0
  298. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/cm +696 -0
  299. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/checkenv.js +42 -0
  300. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.html +82 -0
  301. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.js +170 -0
  302. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.html +106 -0
  303. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.js +123 -0
  304. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.css +82 -0
  305. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.html +352 -0
  306. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/precedence.html +225 -0
  307. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.html +120 -0
  308. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.js +71 -0
  309. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/esprima.js +3577 -0
  310. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/index.html +103 -0
  311. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +42 -0
  312. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  313. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  314. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  315. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  316. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  317. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  318. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  319. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  320. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  321. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  322. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  323. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  324. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  325. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  326. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  327. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  328. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  329. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  330. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/platform.js +878 -0
  331. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  332. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  333. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  334. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.html +58 -0
  335. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.js +328 -0
  336. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.html +140 -0
  337. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.js +270 -0
  338. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.html +40 -0
  339. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.js +239 -0
  340. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.footer.html +3 -0
  341. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.header.html +37 -0
  342. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.html +3617 -0
  343. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/index.html +36 -0
  344. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/reflect.js +403 -0
  345. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/run.js +66 -0
  346. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/test.js +16659 -0
  347. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  348. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/update-coverage.sh +28 -0
  349. data/node_modules/browserify/node_modules/syntax-error/package.json +49 -0
  350. data/node_modules/browserify/node_modules/syntax-error/readme.markdown +87 -0
  351. data/node_modules/browserify/node_modules/syntax-error/test/check.js +17 -0
  352. data/node_modules/browserify/node_modules/syntax-error/test/sources/check.js +9 -0
  353. data/node_modules/browserify/node_modules/vm-browserify/README.markdown +103 -0
  354. data/node_modules/browserify/node_modules/vm-browserify/example/run/bundle.js +473 -0
  355. data/node_modules/browserify/node_modules/vm-browserify/example/run/entry.js +6 -0
  356. data/node_modules/browserify/node_modules/vm-browserify/example/run/index.html +9 -0
  357. data/node_modules/browserify/node_modules/vm-browserify/example/run/server.js +6 -0
  358. data/node_modules/browserify/node_modules/vm-browserify/index.js +85 -0
  359. data/node_modules/browserify/node_modules/vm-browserify/package.json +43 -0
  360. data/node_modules/browserify/node_modules/vm-browserify/testling/run.js +22 -0
  361. data/node_modules/browserify/node_modules/vm-browserify/testling/test.sh +11 -0
  362. data/node_modules/browserify/package.json +78 -0
  363. data/node_modules/browserify/test/alias.js +58 -0
  364. data/node_modules/browserify/test/backbone.js +21 -0
  365. data/node_modules/browserify/test/bin.js +39 -0
  366. data/node_modules/browserify/test/buffer.js +99 -0
  367. data/node_modules/browserify/test/bundle.js +32 -0
  368. data/node_modules/browserify/test/cache.js +28 -0
  369. data/node_modules/browserify/test/coffee.js +39 -0
  370. data/node_modules/browserify/test/coffee/bar.js +1 -0
  371. data/node_modules/browserify/test/coffee/baz.coffee +1 -0
  372. data/node_modules/browserify/test/coffee/entry.coffee +1 -0
  373. data/node_modules/browserify/test/coffee/foo.coffee +1 -0
  374. data/node_modules/browserify/test/coffee/index.coffee +5 -0
  375. data/node_modules/browserify/test/coffee/nested/nested.coffee +2 -0
  376. data/node_modules/browserify/test/comment.js +17 -0
  377. data/node_modules/browserify/test/comment/main.js +2 -0
  378. data/node_modules/browserify/test/crypto.js +37 -0
  379. data/node_modules/browserify/test/dnode.js +27 -0
  380. data/node_modules/browserify/test/dollar.js +19 -0
  381. data/node_modules/browserify/test/dollar/dollar/index.js +7 -0
  382. data/node_modules/browserify/test/entry.js +36 -0
  383. data/node_modules/browserify/test/entry/main.js +1 -0
  384. data/node_modules/browserify/test/entry/one.js +1 -0
  385. data/node_modules/browserify/test/entry/two.js +1 -0
  386. data/node_modules/browserify/test/error_code.js +24 -0
  387. data/node_modules/browserify/test/error_code/src.js +2 -0
  388. data/node_modules/browserify/test/export.js +52 -0
  389. data/node_modules/browserify/test/export/entry.js +1 -0
  390. data/node_modules/browserify/test/field.js +64 -0
  391. data/node_modules/browserify/test/field/miss.js +1 -0
  392. data/node_modules/browserify/test/field/node_modules/z-miss/browser.js +1 -0
  393. data/node_modules/browserify/test/field/node_modules/z-miss/main.js +1 -0
  394. data/node_modules/browserify/test/field/node_modules/z-miss/package.json +4 -0
  395. data/node_modules/browserify/test/field/node_modules/z-object/browser.js +1 -0
  396. data/node_modules/browserify/test/field/node_modules/z-object/main.js +1 -0
  397. data/node_modules/browserify/test/field/node_modules/z-object/package.json +6 -0
  398. data/node_modules/browserify/test/field/node_modules/z-string/browser.js +1 -0
  399. data/node_modules/browserify/test/field/node_modules/z-string/main.js +1 -0
  400. data/node_modules/browserify/test/field/node_modules/z-string/package.json +4 -0
  401. data/node_modules/browserify/test/field/node_modules/z-sub/browser/a.js +1 -0
  402. data/node_modules/browserify/test/field/node_modules/z-sub/browser/b.js +1 -0
  403. data/node_modules/browserify/test/field/node_modules/z-sub/main.js +1 -0
  404. data/node_modules/browserify/test/field/node_modules/z-sub/package.json +4 -0
  405. data/node_modules/browserify/test/field/object.js +1 -0
  406. data/node_modules/browserify/test/field/string.js +1 -0
  407. data/node_modules/browserify/test/field/sub.js +1 -0
  408. data/node_modules/browserify/test/global.js +19 -0
  409. data/node_modules/browserify/test/global/main.js +2 -0
  410. data/node_modules/browserify/test/jade.js +35 -0
  411. data/node_modules/browserify/test/json.js +17 -0
  412. data/node_modules/browserify/test/json/beep.json +4 -0
  413. data/node_modules/browserify/test/json/main.js +1 -0
  414. data/node_modules/browserify/test/maxlisteners.js +8 -0
  415. data/node_modules/browserify/test/module.js +22 -0
  416. data/node_modules/browserify/test/multi_entry.js +20 -0
  417. data/node_modules/browserify/test/multi_entry/a.js +2 -0
  418. data/node_modules/browserify/test/multi_entry/b.js +2 -0
  419. data/node_modules/browserify/test/multi_entry/c.js +3 -0
  420. data/node_modules/browserify/test/multi_ignore.js +23 -0
  421. data/node_modules/browserify/test/node_modules/beep/index.js +1 -0
  422. data/node_modules/browserify/test/require_cache.js +18 -0
  423. data/node_modules/browserify/test/retarget.js +27 -0
  424. data/node_modules/browserify/test/seq.js +47 -0
  425. data/node_modules/browserify/test/subdep.js +26 -0
  426. data/node_modules/browserify/test/subdep/index.js +1 -0
  427. data/node_modules/browserify/test/subdep/package.json +6 -0
  428. data/node_modules/browserify/test/util.js +48 -0
  429. data/node_modules/browserify/test/watch.js +91 -0
  430. data/node_modules/browserify/test/watch/a.js +1 -0
  431. data/node_modules/browserify/test/wrap.js +43 -0
  432. data/node_modules/browserify/test/wrap/a.js +2 -0
  433. data/node_modules/browserify/test/wrap/c.js +1 -0
  434. data/node_modules/browserify/test/wrap/node_modules/b/main.js +1 -0
  435. data/node_modules/browserify/test/wrap/node_modules/b/package.json +3 -0
  436. data/node_modules/browserify/test/wrap/node_modules/skipmetoo/index.js +1 -0
  437. data/node_modules/browserify/test/wrap/skipme.js +1 -0
  438. data/node_modules/browserify/test/wrap/x.js +0 -0
  439. data/node_modules/browserify/testling/README.markdown +29 -0
  440. data/node_modules/browserify/testling/test.sh +37 -0
  441. data/node_modules/browserify/testling/tick.js +9 -0
  442. data/node_modules/browserify/testling/timers.js +50 -0
  443. data/node_modules/browserify/testling/util.js +24 -0
  444. data/node_modules/browserify/v2.markdown +41 -0
  445. data/node_modules/browserify/wrappers/alias.js +1 -0
  446. data/node_modules/browserify/wrappers/body.js +2 -0
  447. data/node_modules/browserify/wrappers/body_debug.js +2 -0
  448. data/node_modules/browserify/wrappers/entry.js +3 -0
  449. data/node_modules/browserify/wrappers/entry_debug.js +3 -0
  450. data/node_modules/browserify/wrappers/package.js +3 -0
  451. data/node_modules/browserify/wrappers/prelude.js +196 -0
  452. data/node_modules/coffee-script/.npmignore +11 -0
  453. data/node_modules/coffee-script/CNAME +1 -0
  454. data/node_modules/coffee-script/CONTRIBUTING.md +9 -0
  455. data/node_modules/coffee-script/LICENSE +22 -0
  456. data/node_modules/coffee-script/README +51 -0
  457. data/node_modules/coffee-script/Rakefile +78 -0
  458. data/node_modules/coffee-script/bin/cake +7 -0
  459. data/node_modules/coffee-script/bin/coffee +7 -0
  460. data/node_modules/coffee-script/extras/jsl.conf +44 -0
  461. data/node_modules/coffee-script/lib/coffee-script/browser.js +92 -0
  462. data/node_modules/coffee-script/lib/coffee-script/cake.js +113 -0
  463. data/node_modules/coffee-script/lib/coffee-script/coffee-script.js +171 -0
  464. data/node_modules/coffee-script/lib/coffee-script/command.js +502 -0
  465. data/node_modules/coffee-script/lib/coffee-script/grammar.js +606 -0
  466. data/node_modules/coffee-script/lib/coffee-script/helpers.js +88 -0
  467. data/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
  468. data/node_modules/coffee-script/lib/coffee-script/lexer.js +788 -0
  469. data/node_modules/coffee-script/lib/coffee-script/nodes.js +2971 -0
  470. data/node_modules/coffee-script/lib/coffee-script/optparse.js +138 -0
  471. data/node_modules/coffee-script/lib/coffee-script/parser.js +683 -0
  472. data/node_modules/coffee-script/lib/coffee-script/repl.js +276 -0
  473. data/node_modules/coffee-script/lib/coffee-script/rewriter.js +349 -0
  474. data/node_modules/coffee-script/lib/coffee-script/scope.js +146 -0
  475. data/node_modules/coffee-script/package.json +50 -0
  476. data/node_modules/jade-runtime/.npmignore +15 -0
  477. data/node_modules/jade-runtime/README.md +8 -0
  478. data/node_modules/jade-runtime/globals.js +32 -0
  479. data/node_modules/jade-runtime/index.js +2 -0
  480. data/node_modules/jade-runtime/jade-runtime.js +181 -0
  481. data/node_modules/jade-runtime/package.json +18 -0
  482. data/node_modules/jade/.npmignore +14 -0
  483. data/node_modules/jade/LICENSE +22 -0
  484. data/node_modules/jade/Readme.md +1299 -0
  485. data/node_modules/jade/bin/jade +168 -0
  486. data/node_modules/jade/index.js +4 -0
  487. data/node_modules/jade/jade.js +3586 -0
  488. data/node_modules/jade/jade.md +510 -0
  489. data/node_modules/jade/jade.min.js +2 -0
  490. data/node_modules/jade/lib/compiler.js +654 -0
  491. data/node_modules/jade/lib/doctypes.js +18 -0
  492. data/node_modules/jade/lib/filters.js +97 -0
  493. data/node_modules/jade/lib/inline-tags.js +28 -0
  494. data/node_modules/jade/lib/jade.js +253 -0
  495. data/node_modules/jade/lib/lexer.js +774 -0
  496. data/node_modules/jade/lib/nodes/attrs.js +77 -0
  497. data/node_modules/jade/lib/nodes/block-comment.js +33 -0
  498. data/node_modules/jade/lib/nodes/block.js +122 -0
  499. data/node_modules/jade/lib/nodes/case.js +43 -0
  500. data/node_modules/jade/lib/nodes/code.js +35 -0
  501. data/node_modules/jade/lib/nodes/comment.js +32 -0
  502. data/node_modules/jade/lib/nodes/doctype.js +29 -0
  503. data/node_modules/jade/lib/nodes/each.js +35 -0
  504. data/node_modules/jade/lib/nodes/filter.js +35 -0
  505. data/node_modules/jade/lib/nodes/index.js +20 -0
  506. data/node_modules/jade/lib/nodes/literal.js +32 -0
  507. data/node_modules/jade/lib/nodes/mixin.js +36 -0
  508. data/node_modules/jade/lib/nodes/node.js +25 -0
  509. data/node_modules/jade/lib/nodes/tag.js +95 -0
  510. data/node_modules/jade/lib/nodes/text.js +36 -0
  511. data/node_modules/jade/lib/parser.js +714 -0
  512. data/node_modules/jade/lib/runtime.js +174 -0
  513. data/node_modules/jade/lib/self-closing.js +19 -0
  514. data/node_modules/jade/lib/utils.js +49 -0
  515. data/node_modules/jade/node_modules/commander/.npmignore +4 -0
  516. data/node_modules/jade/node_modules/commander/.travis.yml +4 -0
  517. data/node_modules/jade/node_modules/commander/History.md +107 -0
  518. data/node_modules/jade/node_modules/commander/Makefile +7 -0
  519. data/node_modules/jade/node_modules/commander/Readme.md +262 -0
  520. data/node_modules/jade/node_modules/commander/index.js +2 -0
  521. data/node_modules/jade/node_modules/commander/lib/commander.js +1026 -0
  522. data/node_modules/jade/node_modules/commander/package.json +39 -0
  523. data/node_modules/jade/node_modules/mkdirp/.npmignore +2 -0
  524. data/node_modules/jade/node_modules/mkdirp/.travis.yml +4 -0
  525. data/node_modules/jade/node_modules/mkdirp/LICENSE +21 -0
  526. data/node_modules/jade/node_modules/mkdirp/README.markdown +61 -0
  527. data/node_modules/jade/node_modules/mkdirp/examples/pow.js +6 -0
  528. data/node_modules/jade/node_modules/mkdirp/index.js +82 -0
  529. data/node_modules/jade/node_modules/mkdirp/package.json +37 -0
  530. data/node_modules/jade/node_modules/mkdirp/test/chmod.js +38 -0
  531. data/node_modules/jade/node_modules/mkdirp/test/clobber.js +37 -0
  532. data/node_modules/jade/node_modules/mkdirp/test/mkdirp.js +28 -0
  533. data/node_modules/jade/node_modules/mkdirp/test/perm.js +32 -0
  534. data/node_modules/jade/node_modules/mkdirp/test/perm_sync.js +39 -0
  535. data/node_modules/jade/node_modules/mkdirp/test/race.js +41 -0
  536. data/node_modules/jade/node_modules/mkdirp/test/rel.js +32 -0
  537. data/node_modules/jade/node_modules/mkdirp/test/return.js +25 -0
  538. data/node_modules/jade/node_modules/mkdirp/test/return_sync.js +24 -0
  539. data/node_modules/jade/node_modules/mkdirp/test/root.js +18 -0
  540. data/node_modules/jade/node_modules/mkdirp/test/sync.js +32 -0
  541. data/node_modules/jade/node_modules/mkdirp/test/umask.js +28 -0
  542. data/node_modules/jade/node_modules/mkdirp/test/umask_sync.js +32 -0
  543. data/node_modules/jade/package.json +53 -0
  544. data/node_modules/jade/runtime.js +179 -0
  545. data/node_modules/jade/runtime.min.js +1 -0
  546. data/node_modules/jade/test.jade +7 -0
  547. data/node_modules/jade/testing/head.jade +5 -0
  548. data/node_modules/jade/testing/index.jade +1 -0
  549. data/node_modules/jade/testing/index.js +14 -0
  550. data/node_modules/jade/testing/layout.jade +10 -0
  551. data/node_modules/jade/testing/user.jade +7 -0
  552. data/node_modules/jade/testing/user.js +27 -0
  553. data/node_modules/optimist/.travis.yml +4 -0
  554. data/node_modules/optimist/LICENSE +21 -0
  555. data/node_modules/optimist/README.markdown +487 -0
  556. data/node_modules/optimist/example/bool.js +10 -0
  557. data/node_modules/optimist/example/boolean_double.js +7 -0
  558. data/node_modules/optimist/example/boolean_single.js +7 -0
  559. data/node_modules/optimist/example/default_hash.js +8 -0
  560. data/node_modules/optimist/example/default_singles.js +7 -0
  561. data/node_modules/optimist/example/divide.js +8 -0
  562. data/node_modules/optimist/example/line_count.js +20 -0
  563. data/node_modules/optimist/example/line_count_options.js +29 -0
  564. data/node_modules/optimist/example/line_count_wrap.js +29 -0
  565. data/node_modules/optimist/example/nonopt.js +4 -0
  566. data/node_modules/optimist/example/reflect.js +2 -0
  567. data/node_modules/optimist/example/short.js +3 -0
  568. data/node_modules/optimist/example/string.js +11 -0
  569. data/node_modules/optimist/example/usage-options.js +19 -0
  570. data/node_modules/optimist/example/xup.js +10 -0
  571. data/node_modules/optimist/index.js +475 -0
  572. data/node_modules/optimist/node_modules/wordwrap/.npmignore +1 -0
  573. data/node_modules/optimist/node_modules/wordwrap/README.markdown +70 -0
  574. data/node_modules/optimist/node_modules/wordwrap/example/center.js +10 -0
  575. data/node_modules/optimist/node_modules/wordwrap/example/meat.js +3 -0
  576. data/node_modules/optimist/node_modules/wordwrap/index.js +76 -0
  577. data/node_modules/optimist/node_modules/wordwrap/package.json +45 -0
  578. data/node_modules/optimist/node_modules/wordwrap/test/break.js +30 -0
  579. data/node_modules/optimist/node_modules/wordwrap/test/idleness.txt +63 -0
  580. data/node_modules/optimist/node_modules/wordwrap/test/wrap.js +31 -0
  581. data/node_modules/optimist/package.json +55 -0
  582. data/node_modules/optimist/test/_.js +71 -0
  583. data/node_modules/optimist/test/_/argv.js +2 -0
  584. data/node_modules/optimist/test/_/bin.js +3 -0
  585. data/node_modules/optimist/test/parse.js +420 -0
  586. data/node_modules/optimist/test/usage.js +292 -0
  587. data/snowball.gemspec +1 -2
  588. metadata +601 -21
  589. data/extconf.rb +0 -9
@@ -0,0 +1,14 @@
1
+ test
2
+ support
3
+ benchmarks
4
+ examples
5
+ lib-cov
6
+ coverage.html
7
+ .gitmodules
8
+ .travis.yml
9
+ History.md
10
+ Makefile
11
+ test/
12
+ support/
13
+ benchmarks/
14
+ examples/
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2009-2010 TJ Holowaychuk <tj@vision-media.ca>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,1299 @@
1
+ [![Build Status](https://secure.travis-ci.org/visionmedia/jade.png)](http://travis-ci.org/visionmedia/jade)
2
+
3
+ # Jade - template engine
4
+
5
+ Jade is a high performance template engine heavily influenced by [Haml](http://haml-lang.com)
6
+ and implemented with JavaScript for [node](http://nodejs.org). For discussion join the [Google Group](http://groups.google.com/group/jadejs).
7
+
8
+ ## Test drive
9
+
10
+ You can test drive Jade online [here](http://naltatis.github.com/jade-syntax-docs).
11
+
12
+ ## README Contents
13
+
14
+ - [Features](#a1)
15
+ - [Implementations](#a2)
16
+ - [Installation](#a3)
17
+ - [Browser Support](#a4)
18
+ - [Public API](#a5)
19
+ - [Syntax](#a6)
20
+ - [Line Endings](#a6-1)
21
+ - [Tags](#a6-2)
22
+ - [Tag Text](#a6-3)
23
+ - [Comments](#a6-4)
24
+ - [Block Comments](#a6-5)
25
+ - [Nesting](#a6-6)
26
+ - [Block Expansion](#a6-7)
27
+ - [Case](#a6-8)
28
+ - [Attributes](#a6-9)
29
+ - [HTML](#a6-10)
30
+ - [Doctypes](#a6-11)
31
+ - [Filters](#a7)
32
+ - [Code](#a8)
33
+ - [Iteration](#a9)
34
+ - [Conditionals](#a10)
35
+ - [Template inheritance](#a11)
36
+ - [Block append / prepend](#a12)
37
+ - [Includes](#a13)
38
+ - [Mixins](#a14)
39
+ - [Generated Output](#a15)
40
+ - [Example Makefile](#a16)
41
+ - [jade(1)](#a17)
42
+ - [Tutorials](#a18)
43
+ - [License](#a19)
44
+
45
+ <a name="a1"/>
46
+ ## Features
47
+
48
+ - client-side support
49
+ - great readability
50
+ - flexible indentation
51
+ - block-expansion
52
+ - mixins
53
+ - static includes
54
+ - attribute interpolation
55
+ - code is escaped by default for security
56
+ - contextual error reporting at compile &amp; run time
57
+ - executable for compiling jade templates via the command line
58
+ - html 5 mode (the default doctype)
59
+ - optional memory caching
60
+ - combine dynamic and static tag classes
61
+ - parse tree manipulation via _filters_
62
+ - template inheritance
63
+ - block append / prepend
64
+ - supports [Express JS](http://expressjs.com) out of the box
65
+ - transparent iteration over objects, arrays, and even non-enumerables via `each`
66
+ - block comments
67
+ - no tag prefix
68
+ - AST filters
69
+ - filters
70
+ - :stylus must have [stylus](http://github.com/LearnBoost/stylus) installed
71
+ - :less must have [less.js](http://github.com/cloudhead/less.js) installed
72
+ - :markdown must have [markdown-js](http://github.com/evilstreak/markdown-js), [node-discount](http://github.com/visionmedia/node-discount), or [marked](http://github.com/chjj/marked) installed
73
+ - :cdata
74
+ - :coffeescript must have [coffee-script](http://jashkenas.github.com/coffee-script/) installed
75
+ - [Emacs Mode](https://github.com/brianc/jade-mode)
76
+ - [Vim Syntax](https://github.com/digitaltoad/vim-jade)
77
+ - [TextMate Bundle](http://github.com/miksago/jade-tmbundle)
78
+ - [Coda/SubEtha syntax Mode](https://github.com/aaronmccall/jade.mode)
79
+ - [Screencasts](http://tjholowaychuk.com/post/1004255394/jade-screencast-template-engine-for-nodejs)
80
+ - [html2jade](https://github.com/donpark/html2jade) converter
81
+
82
+ <a name="a2"/>
83
+ ## Implementations
84
+
85
+ - [php](http://github.com/everzet/jade.php)
86
+ - [scala](http://scalate.fusesource.org/versions/snapshot/documentation/scaml-reference.html)
87
+ - [ruby](http://github.com/stonean/slim)
88
+ - [python](https://github.com/SyrusAkbary/pyjade)
89
+ - [java](https://github.com/neuland/jade4j)
90
+
91
+ <a name="a3"/>
92
+ ## Installation
93
+
94
+ via npm:
95
+
96
+ ```bash
97
+ $ npm install jade
98
+ ```
99
+
100
+ <a name="a4"/>
101
+ ## Browser Support
102
+
103
+ To compile jade to a single file compatible for client-side use simply execute:
104
+
105
+ ```bash
106
+ $ make jade.js
107
+ ```
108
+
109
+ Alternatively, if uglifyjs is installed via npm (`npm install uglify-js`) you may execute the following which will create both files. However each release builds these for you.
110
+
111
+ ```bash
112
+ $ make jade.min.js
113
+ ```
114
+
115
+ By default Jade instruments templates with line number statements such as `__.lineno = 3` for debugging purposes. When used in a browser it's useful to minimize this boiler plate, you can do so by passing the option `{ compileDebug: false }`. The following template
116
+
117
+ ```jade
118
+ p Hello #{name}
119
+ ```
120
+
121
+ Can then be as small as the following generated function:
122
+
123
+ ```js
124
+ function anonymous(locals, attrs, escape, rethrow) {
125
+ var buf = [];
126
+ with (locals || {}) {
127
+ var interp;
128
+ buf.push('\n<p>Hello ' + escape((interp = name) == null ? '' : interp) + '\n</p>');
129
+ }
130
+ return buf.join("");
131
+ }
132
+ ```
133
+
134
+ Through the use of Jade's `./runtime.js` you may utilize these pre-compiled templates on the client-side _without_ Jade itself, all you need is the associated utility functions (in runtime.js), which are then available as `jade.attrs`, `jade.escape` etc. To enable this you should pass `{ client: true }` to `jade.compile()` to tell Jade to reference the helper functions
135
+ via `jade.attrs`, `jade.escape` etc.
136
+
137
+ ```js
138
+ function anonymous(locals, attrs, escape, rethrow) {
139
+ var attrs = jade.attrs, escape = jade.escape, rethrow = jade.rethrow;
140
+ var buf = [];
141
+ with (locals || {}) {
142
+ var interp;
143
+ buf.push('\n<p>Hello ' + escape((interp = name) == null ? '' : interp) + '\n</p>');
144
+ }
145
+ return buf.join("");
146
+ }
147
+ ```
148
+
149
+ <a name="a5"/>
150
+ ## Public API
151
+
152
+ ```js
153
+ var jade = require('jade');
154
+
155
+ // Compile a function
156
+ var fn = jade.compile('string of jade', options);
157
+ fn(locals);
158
+ ```
159
+
160
+ ### Options
161
+
162
+ - `self` Use a `self` namespace to hold the locals _(false by default)_
163
+ - `locals` Local variable object
164
+ - `filename` Used in exceptions, and required when using includes
165
+ - `debug` Outputs tokens and function body generated
166
+ - `compiler` Compiler to replace jade's default
167
+ - `compileDebug` When `false` no debug instrumentation is compiled
168
+ - `pretty` Add pretty-indentation whitespace to output _(false by default)_
169
+
170
+ <a name="a6"/>
171
+ ## Syntax
172
+
173
+ <a name="a6-1"/>
174
+ ### Line Endings
175
+
176
+ **CRLF** and **CR** are converted to **LF** before parsing.
177
+
178
+ <a name="a6-2"/>
179
+ ### Tags
180
+
181
+ A tag is simply a leading word:
182
+
183
+ ```jade
184
+ html
185
+ ```
186
+
187
+ for example is converted to `<html></html>`
188
+
189
+ tags can also have ids:
190
+
191
+ ```jade
192
+ div#container
193
+ ```
194
+
195
+ which would render `<div id="container"></div>`
196
+
197
+ how about some classes?
198
+
199
+ ```jade
200
+ div.user-details
201
+ ```
202
+
203
+ renders `<div class="user-details"></div>`
204
+
205
+ multiple classes? _and_ an id? sure:
206
+
207
+ ```jade
208
+ div#foo.bar.baz
209
+ ```
210
+
211
+ renders `<div id="foo" class="bar baz"></div>`
212
+
213
+ div div div sure is annoying, how about:
214
+
215
+ ```jade
216
+ #foo
217
+ .bar
218
+ ```
219
+
220
+ which is syntactic sugar for what we have already been doing, and outputs:
221
+
222
+ ```html
223
+ <div id="foo"></div><div class="bar"></div>
224
+ ```
225
+
226
+ <a name="a6-3"/>
227
+ ### Tag Text
228
+
229
+ Simply place some content after the tag:
230
+
231
+ ```jade
232
+ p wahoo!
233
+ ```
234
+
235
+ renders `<p>wahoo!</p>`.
236
+
237
+ well cool, but how about large bodies of text:
238
+
239
+ ```jade
240
+ p
241
+ | foo bar baz
242
+ | rawr rawr
243
+ | super cool
244
+ | go jade go
245
+ ```
246
+
247
+ renders `<p>foo bar baz rawr.....</p>`
248
+
249
+ interpolation? yup! both types of text can utilize interpolation,
250
+ if we passed `{ name: 'tj', email: 'tj@vision-media.ca' }` to the compiled function we can do the following:
251
+
252
+ ```jade
253
+ #user #{name} &lt;#{email}&gt;
254
+ ```
255
+
256
+ outputs `<div id="user">tj &lt;tj@vision-media.ca&gt;</div>`
257
+
258
+ Actually want `#{}` for some reason? escape it!
259
+
260
+ ```jade
261
+ p \#{something}
262
+ ```
263
+
264
+ now we have `<p>#{something}</p>`
265
+
266
+ We can also utilize the unescaped variant `!{html}`, so the following
267
+ will result in a literal script tag:
268
+
269
+ ```jade
270
+ - var html = "<script></script>"
271
+ | !{html}
272
+ ```
273
+
274
+ Nested tags that also contain text can optionally use a text block:
275
+
276
+ ```jade
277
+ label
278
+ | Username:
279
+ input(name='user[name]')
280
+ ```
281
+
282
+ or immediate tag text:
283
+
284
+ ```jade
285
+ label Username:
286
+ input(name='user[name]')
287
+ ```
288
+
289
+ Tags that accept _only_ text such as `script` and `style` do not
290
+ need the leading `|` character, for example:
291
+
292
+ ```jade
293
+ html
294
+ head
295
+ title Example
296
+ script
297
+ if (foo) {
298
+ bar();
299
+ } else {
300
+ baz();
301
+ }
302
+ ```
303
+
304
+ Once again as an alternative, we may use a trailing `.` to indicate a text block, for example:
305
+
306
+ ```jade
307
+ p.
308
+ foo asdf
309
+ asdf
310
+ asdfasdfaf
311
+ asdf
312
+ asd.
313
+ ```
314
+
315
+ outputs:
316
+
317
+ ```html
318
+ <p>foo asdf
319
+ asdf
320
+ asdfasdfaf
321
+ asdf
322
+ asd.
323
+ </p>
324
+ ```
325
+
326
+ This however differs from a trailing `.` followed by a space, which although is ignored by the Jade parser, tells Jade that this period is a literal:
327
+
328
+ ```jade
329
+ p .
330
+ ```
331
+
332
+ outputs:
333
+
334
+ ```html
335
+ <p>.</p>
336
+ ```
337
+
338
+ It should be noted that text blocks should be doubled escaped. For example if you desire the following output.
339
+
340
+ ```html
341
+ <p>foo\bar</p>
342
+ ```
343
+
344
+ use:
345
+
346
+ ```jade
347
+ p.
348
+ foo\\bar
349
+ ```
350
+
351
+ <a name="a6-4"/>
352
+ ### Comments
353
+
354
+ Single line comments currently look the same as JavaScript comments,
355
+ aka `//` and must be placed on their own line:
356
+
357
+ ```jade
358
+ // just some paragraphs
359
+ p foo
360
+ p bar
361
+ ```
362
+
363
+ would output
364
+
365
+ ```html
366
+ <!-- just some paragraphs -->
367
+ <p>foo</p>
368
+ <p>bar</p>
369
+ ```
370
+
371
+ Jade also supports unbuffered comments, by simply adding a hyphen:
372
+
373
+ ```jade
374
+ //- will not output within markup
375
+ p foo
376
+ p bar
377
+ ```
378
+
379
+ outputting
380
+
381
+ ```html
382
+ <p>foo</p>
383
+ <p>bar</p>
384
+ ```
385
+
386
+ <a name="a6-5"/>
387
+ ### Block Comments
388
+
389
+ A block comment is legal as well:
390
+
391
+ ```jade
392
+ body
393
+ //
394
+ #content
395
+ h1 Example
396
+ ```
397
+
398
+ outputting
399
+
400
+ ```html
401
+ <body>
402
+ <!--
403
+ <div id="content">
404
+ <h1>Example</h1>
405
+ </div>
406
+ -->
407
+ </body>
408
+ ```
409
+
410
+ Jade supports conditional-comments as well, for example:
411
+
412
+ ```jade
413
+ head
414
+ //if lt IE 8
415
+ script(src='/ie-sucks.js')
416
+ ```
417
+
418
+ outputs:
419
+
420
+ ```html
421
+ <body>
422
+ <!--[if lt IE 8]>
423
+ <script src="/ie-sucks.js"></script>
424
+ <![endif]-->
425
+ </body>
426
+ ```
427
+
428
+ <a name="a6-6"/>
429
+ ### Nesting
430
+
431
+ Jade supports nesting to define the tags in a natural way:
432
+
433
+ ```jade
434
+ ul
435
+ li.first
436
+ a(href='#') foo
437
+ li
438
+ a(href='#') bar
439
+ li.last
440
+ a(href='#') baz
441
+ ```
442
+
443
+ <a name="a6-7"/>
444
+ ### Block Expansion
445
+
446
+ Block expansion allows you to create terse single-line nested tags,
447
+ the following example is equivalent to the nesting example above.
448
+
449
+ ```jade
450
+ ul
451
+ li.first: a(href='#') foo
452
+ li: a(href='#') bar
453
+ li.last: a(href='#') baz
454
+ ```
455
+
456
+ <a name="a6-8"/>
457
+ ### Case
458
+
459
+ The case statement takes the following form:
460
+
461
+ ```jade
462
+ html
463
+ body
464
+ friends = 10
465
+ case friends
466
+ when 0
467
+ p you have no friends
468
+ when 1
469
+ p you have a friend
470
+ default
471
+ p you have #{friends} friends
472
+ ```
473
+
474
+ Block expansion may also be used:
475
+
476
+ ```jade
477
+ friends = 5
478
+
479
+ html
480
+ body
481
+ case friends
482
+ when 0: p you have no friends
483
+ when 1: p you have a friend
484
+ default: p you have #{friends} friends
485
+ ```
486
+
487
+ <a name="a6-9"/>
488
+ ### Attributes
489
+
490
+ Jade currently supports `(` and `)` as attribute delimiters.
491
+
492
+ ```jade
493
+ a(href='/login', title='View login page') Login
494
+ ```
495
+
496
+ When a value is `undefined` or `null` the attribute is _not_ added,
497
+ so this is fine, it will not compile `something="null"`.
498
+
499
+ ```jade
500
+ div(something=null)
501
+ ```
502
+
503
+ Boolean attributes are also supported:
504
+
505
+ ```jade
506
+ input(type="checkbox", checked)
507
+ ```
508
+
509
+ Boolean attributes with code will only output the attribute when `true`:
510
+
511
+ ```jade
512
+ input(type="checkbox", checked=someValue)
513
+ ```
514
+
515
+ Multiple lines work too:
516
+
517
+ ```jade
518
+ input(type='checkbox',
519
+ name='agreement',
520
+ checked)
521
+ ```
522
+
523
+ Multiple lines without the comma work fine:
524
+
525
+ ```jade
526
+ input(type='checkbox'
527
+ name='agreement'
528
+ checked)
529
+ ```
530
+
531
+ Funky whitespace? fine:
532
+
533
+ ```jade
534
+ input(
535
+ type='checkbox'
536
+ name='agreement'
537
+ checked)
538
+ ```
539
+
540
+ Colons work:
541
+
542
+ ```jade
543
+ rss(xmlns:atom="atom")
544
+ ```
545
+
546
+ Suppose we have the `user` local `{ id: 12, name: 'tobi' }`
547
+ and we wish to create an anchor tag with `href` pointing to "/user/12"
548
+ we could use regular javascript concatenation:
549
+
550
+ ```jade
551
+ a(href='/user/' + user.id)= user.name
552
+ ```
553
+
554
+ or we could use jade's interpolation, which I added because everyone
555
+ using Ruby or CoffeeScript seems to think this is legal js..:
556
+
557
+ ```jade
558
+ a(href='/user/#{user.id}')= user.name
559
+ ```
560
+
561
+ The `class` attribute is special-cased when an array is given,
562
+ allowing you to pass an array such as `bodyClasses = ['user', 'authenticated']` directly:
563
+
564
+ ```jade
565
+ body(class=bodyClasses)
566
+ ```
567
+
568
+ <a name="a6-10"/>
569
+ ### HTML
570
+
571
+ Inline html is fine, we can use the pipe syntax to
572
+ write arbitrary text, in this case some html:
573
+
574
+ ```jade
575
+ html
576
+ body
577
+ | <h1>Title</h1>
578
+ | <p>foo bar baz</p>
579
+ ```
580
+
581
+ Or we can use the trailing `.` to indicate to Jade that we
582
+ only want text in this block, allowing us to omit the pipes:
583
+
584
+ ```jade
585
+ html
586
+ body.
587
+ <h1>Title</h1>
588
+ <p>foo bar baz</p>
589
+ ```
590
+
591
+ Both of these examples yield the same result:
592
+
593
+ ```html
594
+ <html><body><h1>Title</h1>
595
+ <p>foo bar baz</p>
596
+ </body></html>
597
+ ```
598
+
599
+ The same rule applies for anywhere you can have text
600
+ in jade, raw html is fine:
601
+
602
+ ```jade
603
+ html
604
+ body
605
+ h1 User <em>#{name}</em>
606
+ ```
607
+
608
+ <a name="a6-11"/>
609
+ ### Doctypes
610
+
611
+ To add a doctype simply use `!!!`, or `doctype` followed by an optional value:
612
+
613
+ ```jade
614
+ !!!
615
+ ```
616
+
617
+ or
618
+
619
+ ```jade
620
+ doctype
621
+ ```
622
+
623
+ Will output the _html 5_ doctype, however:
624
+
625
+ ```jade
626
+ !!! transitional
627
+ ```
628
+
629
+ Will output the _transitional_ doctype.
630
+
631
+ Doctypes are case-insensitive, so the following are equivalent:
632
+
633
+ ```jade
634
+ doctype Basic
635
+ doctype basic
636
+ ```
637
+
638
+ it's also possible to simply pass a doctype literal:
639
+
640
+ ```jade
641
+ doctype html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN
642
+ ```
643
+
644
+ yielding:
645
+
646
+ ```html
647
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN>
648
+ ```
649
+
650
+ Below are the doctypes defined by default, which can easily be extended:
651
+
652
+ ```js
653
+ var doctypes = exports.doctypes = {
654
+ '5': '<!DOCTYPE html>',
655
+ 'default': '<!DOCTYPE html>',
656
+ 'xml': '<?xml version="1.0" encoding="utf-8" ?>',
657
+ 'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
658
+ 'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
659
+ 'frameset': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
660
+ '1.1': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
661
+ 'basic': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
662
+ 'mobile': '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">'
663
+ };
664
+ ```
665
+
666
+ To alter the default simply change:
667
+
668
+ ```js
669
+ jade.doctypes.default = 'whatever you want';
670
+ ```
671
+
672
+ <a name="a7"/>
673
+ ## Filters
674
+
675
+ Filters are prefixed with `:`, for example `:markdown` and
676
+ pass the following block of text to an arbitrary function for processing. View the _features_
677
+ at the top of this document for available filters.
678
+
679
+ ```jade
680
+ body
681
+ :markdown
682
+ Woah! jade _and_ markdown, very **cool**
683
+ we can even link to [stuff](http://google.com)
684
+ ```
685
+
686
+ Renders:
687
+
688
+ ```html
689
+ <body><p>Woah! jade <em>and</em> markdown, very <strong>cool</strong> we can even link to <a href="http://google.com">stuff</a></p></body>
690
+ ```
691
+
692
+ <a name="a8"/>
693
+ ## Code
694
+
695
+ Jade currently supports three classifications of executable code. The first
696
+ is prefixed by `-`, and is not buffered:
697
+
698
+ ```jade
699
+ - var foo = 'bar';
700
+ ```
701
+
702
+ This can be used for conditionals, or iteration:
703
+
704
+ ```jade
705
+ - for (var key in obj)
706
+ p= obj[key]
707
+ ```
708
+
709
+ Due to Jade's buffering techniques the following is valid as well:
710
+
711
+ ```jade
712
+ - if (foo)
713
+ ul
714
+ li yay
715
+ li foo
716
+ li worked
717
+ - else
718
+ p oh no! didnt work
719
+ ```
720
+
721
+ Hell, even verbose iteration:
722
+
723
+ ```jade
724
+ - if (items.length)
725
+ ul
726
+ - items.forEach(function(item){
727
+ li= item
728
+ - })
729
+ ```
730
+
731
+ Anything you want!
732
+
733
+ Next up we have _escaped_ buffered code, which is used to
734
+ buffer a return value, which is prefixed by `=`:
735
+
736
+ ```jade
737
+ - var foo = 'bar'
738
+ = foo
739
+ h1= foo
740
+ ```
741
+
742
+ Which outputs `bar<h1>bar</h1>`. Code buffered by `=` is escaped
743
+ by default for security, however to output unescaped return values
744
+ you may use `!=`:
745
+
746
+ ```jade
747
+ p!= aVarContainingMoreHTML
748
+ ```
749
+
750
+ Jade also has designer-friendly variants, making the literal JavaScript
751
+ more expressive and declarative. For example the following assignments
752
+ are equivalent, and the expression is still regular javascript:
753
+
754
+ ```jade
755
+ - var foo = 'foo ' + 'bar'
756
+ foo = 'foo ' + 'bar'
757
+ ```
758
+
759
+ Likewise Jade has first-class `if`, `else if`, `else`, `until`, `while`, `unless` among others, however you must remember that the expressions are still regular javascript:
760
+
761
+ ```jade
762
+ if foo == 'bar'
763
+ ul
764
+ li yay
765
+ li foo
766
+ li worked
767
+ else
768
+ p oh no! didnt work
769
+ ```
770
+
771
+ <a name="a9"/>
772
+ ## Iteration
773
+
774
+ Along with vanilla JavaScript Jade also supports a subset of
775
+ constructs that allow you to create more designer-friendly templates,
776
+ one of these constructs is `each`, taking the form:
777
+
778
+ ```jade
779
+ each VAL[, KEY] in OBJ
780
+ ```
781
+
782
+ An example iterating over an array:
783
+
784
+ ```jade
785
+ - var items = ["one", "two", "three"]
786
+ each item in items
787
+ li= item
788
+ ```
789
+
790
+ outputs:
791
+
792
+ ```html
793
+ <li>one</li>
794
+ <li>two</li>
795
+ <li>three</li>
796
+ ```
797
+
798
+ iterating an array with index:
799
+
800
+ ```jade
801
+ items = ["one", "two", "three"]
802
+ each item, i in items
803
+ li #{item}: #{i}
804
+ ```
805
+
806
+ outputs:
807
+
808
+ ```html
809
+ <li>one: 0</li>
810
+ <li>two: 1</li>
811
+ <li>three: 2</li>
812
+ ```
813
+
814
+ iterating an object's keys and values:
815
+
816
+ ```jade
817
+ obj = { foo: 'bar' }
818
+ each val, key in obj
819
+ li #{key}: #{val}
820
+ ```
821
+
822
+ would output `<li>foo: bar</li>`
823
+
824
+ Internally Jade converts these statements to regular
825
+ JavaScript loops such as `users.forEach(function(user){`,
826
+ so lexical scope and nesting applies as it would with regular
827
+ JavaScript:
828
+
829
+ ```jade
830
+ each user in users
831
+ each role in user.roles
832
+ li= role
833
+ ```
834
+
835
+ You may also use `for` if you prefer:
836
+
837
+ ```jade
838
+ for user in users
839
+ for role in user.roles
840
+ li= role
841
+ ```
842
+
843
+ <a name="a10"/>
844
+ ## Conditionals
845
+
846
+ Jade conditionals are equivalent to those using the code (`-`) prefix,
847
+ however allow you to ditch parenthesis to become more designer friendly,
848
+ however keep in mind the expression given is _regular_ JavaScript:
849
+
850
+ ```jade
851
+ for user in users
852
+ if user.role == 'admin'
853
+ p #{user.name} is an admin
854
+ else
855
+ p= user.name
856
+ ```
857
+
858
+ is equivalent to the following using vanilla JavaScript literals:
859
+
860
+ ```jade
861
+ for user in users
862
+ - if (user.role == 'admin')
863
+ p #{user.name} is an admin
864
+ - else
865
+ p= user.name
866
+ ```
867
+
868
+ Jade also provides have `unless` which is equivalent to `if (!(expr))`:
869
+
870
+ ```jade
871
+ for user in users
872
+ unless user.isAnonymous
873
+ p
874
+ | Click to view
875
+ a(href='/users/' + user.id)= user.name
876
+ ```
877
+
878
+ <a name="a11"/>
879
+ ## Template inheritance
880
+
881
+ Jade supports template inheritance via the `block` and `extends` keywords. A block is simply a "block" of Jade that may be replaced within a child template, this process is recursive. To activate template inheritance in Express 2.x you must add: `app.set('view options', { layout: false });`.
882
+
883
+ Jade blocks can provide default content if desired, however optional as shown below by `block scripts`, `block content`, and `block foot`.
884
+
885
+ ```jade
886
+ html
887
+ head
888
+ h1 My Site - #{title}
889
+ block scripts
890
+ script(src='/jquery.js')
891
+ body
892
+ block content
893
+ block foot
894
+ #footer
895
+ p some footer content
896
+ ```
897
+
898
+ Now to extend the layout, simply create a new file and use the `extends` directive as shown below, giving the path (with or without the .jade extension). You may now define one or more blocks that will override the parent block content, note that here the `foot` block is _not_ redefined and will output "some footer content".
899
+
900
+ ```jade
901
+ extends layout
902
+
903
+ block scripts
904
+ script(src='/jquery.js')
905
+ script(src='/pets.js')
906
+
907
+ block content
908
+ h1= title
909
+ each pet in pets
910
+ include pet
911
+ ```
912
+
913
+ It's also possible to override a block to provide additional blocks, as shown in the following example where `content` now exposes a `sidebar` and `primary` block for overriding, or the child template could override `content` all together.
914
+
915
+ ```jade
916
+ extends regular-layout
917
+
918
+ block content
919
+ .sidebar
920
+ block sidebar
921
+ p nothing
922
+ .primary
923
+ block primary
924
+ p nothing
925
+ ```
926
+
927
+ <a name="a12"/>
928
+ ## Block append / prepend
929
+
930
+ Jade allows you to _replace_ (default), _prepend_, or _append_ blocks. Suppose for example you have default scripts in a "head" block that you wish to utilize on _every_ page, you might do this:
931
+
932
+ ```jade
933
+ html
934
+ head
935
+ block head
936
+ script(src='/vendor/jquery.js')
937
+ script(src='/vendor/caustic.js')
938
+ body
939
+ block content
940
+ ```
941
+
942
+ Now suppose you have a page of your application for a JavaScript game, you want some game related scripts as well as these defaults, you can simply `append` the block:
943
+
944
+ ```jade
945
+ extends layout
946
+
947
+ block append head
948
+ script(src='/vendor/three.js')
949
+ script(src='/game.js')
950
+ ```
951
+
952
+ When using `block append` or `block prepend` the `block` is optional:
953
+
954
+ ```jade
955
+ extends layout
956
+
957
+ append head
958
+ script(src='/vendor/three.js')
959
+ script(src='/game.js')
960
+ ```
961
+
962
+ <a name="a13"/>
963
+ ## Includes
964
+
965
+ Includes allow you to statically include chunks of Jade,
966
+ or other content like css, or html which lives in separate files. The classical example is including a header and footer. Suppose we have the following directory structure:
967
+
968
+ ./layout.jade
969
+ ./includes/
970
+ ./head.jade
971
+ ./foot.jade
972
+
973
+ and the following _layout.jade_:
974
+
975
+ ```jade
976
+ html
977
+ include includes/head
978
+ body
979
+ h1 My Site
980
+ p Welcome to my super amazing site.
981
+ include includes/foot
982
+ ```
983
+
984
+ both includes _includes/head_ and _includes/foot_ are
985
+ read relative to the `filename` option given to _layout.jade_,
986
+ which should be an absolute path to this file, however Express does this for you. Include then parses these files, and injects the AST produced to render what you would expect:
987
+
988
+ ```html
989
+ <html>
990
+ <head>
991
+ <title>My Site</title>
992
+ <script src="/javascripts/jquery.js">
993
+ </script><script src="/javascripts/app.js"></script>
994
+ </head>
995
+ <body>
996
+ <h1>My Site</h1>
997
+ <p>Welcome to my super lame site.</p>
998
+ <div id="footer">
999
+ <p>Copyright>(c) foobar</p>
1000
+ </div>
1001
+ </body>
1002
+ </html>
1003
+ ```
1004
+
1005
+ As mentioned `include` can be used to include other content
1006
+ such as html or css. By providing an extension Jade will not
1007
+ assume that the file is Jade source and will include it as
1008
+ a literal:
1009
+
1010
+ ```jade
1011
+ html
1012
+ body
1013
+ include content.html
1014
+ ```
1015
+
1016
+ Include directives may also accept a block, in which case the
1017
+ the given block will be appended to the _last_ block defined
1018
+ in the file. For example if `head.jade` contains:
1019
+
1020
+ ```jade
1021
+ head
1022
+ script(src='/jquery.js')
1023
+ ```
1024
+
1025
+ We may append values by providing a block to `include head`
1026
+ as shown below, adding the two scripts.
1027
+
1028
+ ```jade
1029
+ html
1030
+ include head
1031
+ script(src='/foo.js')
1032
+ script(src='/bar.js')
1033
+ body
1034
+ h1 test
1035
+ ```
1036
+
1037
+ You may also `yield` within an included template, allowing you to explicitly mark where the block given to `include` will be placed. Suppose for example you wish to prepend scripts rather than append, you might do the following:
1038
+
1039
+ ```jade
1040
+ head
1041
+ yield
1042
+ script(src='/jquery.js')
1043
+ script(src='/jquery.ui.js')
1044
+ ```
1045
+
1046
+ Since included Jade is parsed and literally merges the AST, lexically scoped variables function as if the included Jade was written right in the same file. This means `include` may be used as sort of partial, for example support we have `user.jade` which utilizes a `user` variable.
1047
+
1048
+ ```jade
1049
+ h1= user.name
1050
+ p= user.occupation
1051
+ ```
1052
+
1053
+ We could then simply `include user` while iterating users, and since the `user` variable is already defined within the loop the included template will have access to it.
1054
+
1055
+ ```jade
1056
+ users = [{ name: 'Tobi', occupation: 'Ferret' }]
1057
+
1058
+ each user in users
1059
+ .user
1060
+ include user
1061
+ ```
1062
+
1063
+ yielding:
1064
+
1065
+ ```html
1066
+ <div class="user">
1067
+ <h1>Tobi</h1>
1068
+ <p>Ferret</p>
1069
+ </div>
1070
+ ```
1071
+
1072
+ If we wanted to expose a different variable name as `user` since `user.jade` references that name, we could simply define a new variable as shown here with `user = person`:
1073
+
1074
+ ```jade
1075
+ each person in users
1076
+ .user
1077
+ user = person
1078
+ include user
1079
+ ```
1080
+
1081
+ <a name="a14"/>
1082
+ ## Mixins
1083
+
1084
+ Mixins are converted to regular JavaScript functions in
1085
+ the compiled template that Jade constructs. Mixins may
1086
+ take arguments, though not required:
1087
+
1088
+ ```jade
1089
+ mixin list
1090
+ ul
1091
+ li foo
1092
+ li bar
1093
+ li baz
1094
+ ```
1095
+
1096
+ Utilizing a mixin without args looks similar, just without a block:
1097
+
1098
+ ```jade
1099
+ h2 Groceries
1100
+ mixin list
1101
+ ```
1102
+
1103
+ Mixins may take one or more arguments as well, the arguments
1104
+ are regular javascripts expressions, so for example the following:
1105
+
1106
+ ```jade
1107
+ mixin pets(pets)
1108
+ ul.pets
1109
+ - each pet in pets
1110
+ li= pet
1111
+
1112
+ mixin profile(user)
1113
+ .user
1114
+ h2= user.name
1115
+ mixin pets(user.pets)
1116
+ ```
1117
+
1118
+ Would yield something similar to the following html:
1119
+
1120
+ ```html
1121
+ <div class="user">
1122
+ <h2>tj</h2>
1123
+ <ul class="pets">
1124
+ <li>tobi</li>
1125
+ <li>loki</li>
1126
+ <li>jane</li>
1127
+ <li>manny</li>
1128
+ </ul>
1129
+ </div>
1130
+ ```
1131
+
1132
+ <a name="a15"/>
1133
+ ## Generated Output
1134
+
1135
+ Suppose we have the following Jade:
1136
+
1137
+ ```jade
1138
+ - var title = 'yay'
1139
+ h1.title #{title}
1140
+ p Just an example
1141
+ ```
1142
+
1143
+ When the `compileDebug` option is not explicitly `false`, Jade
1144
+ will compile the function instrumented with `__.lineno = n;`, which
1145
+ in the event of an exception is passed to `rethrow()` which constructs
1146
+ a useful message relative to the initial Jade input.
1147
+
1148
+ ```js
1149
+ function anonymous(locals) {
1150
+ var __ = { lineno: 1, input: "- var title = 'yay'\nh1.title #{title}\np Just an example", filename: "testing/test.js" };
1151
+ var rethrow = jade.rethrow;
1152
+ try {
1153
+ var attrs = jade.attrs, escape = jade.escape;
1154
+ var buf = [];
1155
+ with (locals || {}) {
1156
+ var interp;
1157
+ __.lineno = 1;
1158
+ var title = 'yay'
1159
+ __.lineno = 2;
1160
+ buf.push('<h1');
1161
+ buf.push(attrs({ "class": ('title') }));
1162
+ buf.push('>');
1163
+ buf.push('' + escape((interp = title) == null ? '' : interp) + '');
1164
+ buf.push('</h1>');
1165
+ __.lineno = 3;
1166
+ buf.push('<p>');
1167
+ buf.push('Just an example');
1168
+ buf.push('</p>');
1169
+ }
1170
+ return buf.join("");
1171
+ } catch (err) {
1172
+ rethrow(err, __.input, __.filename, __.lineno);
1173
+ }
1174
+ }
1175
+ ```
1176
+
1177
+ When the `compileDebug` option _is_ explicitly `false`, this instrumentation
1178
+ is stripped, which is very helpful for light-weight client-side templates. Combining Jade's options with the `./runtime.js` file in this repo allows you
1179
+ to toString() compiled templates and avoid running the entire Jade library on
1180
+ the client, increasing performance, and decreasing the amount of JavaScript
1181
+ required.
1182
+
1183
+ ```js
1184
+ function anonymous(locals) {
1185
+ var attrs = jade.attrs, escape = jade.escape;
1186
+ var buf = [];
1187
+ with (locals || {}) {
1188
+ var interp;
1189
+ var title = 'yay'
1190
+ buf.push('<h1');
1191
+ buf.push(attrs({ "class": ('title') }));
1192
+ buf.push('>');
1193
+ buf.push('' + escape((interp = title) == null ? '' : interp) + '');
1194
+ buf.push('</h1>');
1195
+ buf.push('<p>');
1196
+ buf.push('Just an example');
1197
+ buf.push('</p>');
1198
+ }
1199
+ return buf.join("");
1200
+ }
1201
+ ```
1202
+
1203
+ <a name="a16"/>
1204
+ ## Example Makefile
1205
+
1206
+ Below is an example Makefile used to compile _pages/*.jade_
1207
+ into _pages/*.html_ files by simply executing `make`.
1208
+
1209
+ ```make
1210
+ JADE = $(shell find pages/*.jade)
1211
+ HTML = $(JADE:.jade=.html)
1212
+
1213
+ all: $(HTML)
1214
+
1215
+ %.html: %.jade
1216
+ jade < $< --path $< > $@
1217
+
1218
+ clean:
1219
+ rm -f $(HTML)
1220
+
1221
+ .PHONY: clean
1222
+ ```
1223
+
1224
+ this can be combined with the `watch(1)` command to produce
1225
+ a watcher-like behaviour:
1226
+
1227
+ ```bash
1228
+ $ watch make
1229
+ ```
1230
+
1231
+ <a name="a17"/>
1232
+ ## jade(1)
1233
+
1234
+ ```
1235
+
1236
+ Usage: jade [options] [dir|file ...]
1237
+
1238
+ Options:
1239
+
1240
+ -h, --help output usage information
1241
+ -V, --version output the version number
1242
+ -o, --obj <str> javascript options object
1243
+ -O, --out <dir> output the compiled html to <dir>
1244
+ -p, --path <path> filename used to resolve includes
1245
+ -P, --pretty compile pretty html output
1246
+ -c, --client compile for client-side runtime.js
1247
+ -D, --no-debug compile without debugging (smaller functions)
1248
+
1249
+ Examples:
1250
+
1251
+ # translate jade the templates dir
1252
+ $ jade templates
1253
+
1254
+ # create {foo,bar}.html
1255
+ $ jade {foo,bar}.jade
1256
+
1257
+ # jade over stdio
1258
+ $ jade < my.jade > my.html
1259
+
1260
+ # jade over stdio
1261
+ $ echo "h1 Jade!" | jade
1262
+
1263
+ # foo, bar dirs rendering to /tmp
1264
+ $ jade foo bar --out /tmp
1265
+
1266
+ ```
1267
+
1268
+ <a name="a18"/>
1269
+ ## Tutorials
1270
+
1271
+ - cssdeck interactive [Jade syntax tutorial](http://cssdeck.com/labs/learning-the-jade-templating-engine-syntax)
1272
+ - cssdeck interactive [Jade logic tutorial](http://cssdeck.com/labs/jade-templating-tutorial-codecast-part-2)
1273
+ - in [Japanese](http://blog.craftgear.net/4f501e97c1347ec934000001/title/10%E5%88%86%E3%81%A7%E3%82%8F%E3%81%8B%E3%82%8Bjade%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%B3)
1274
+
1275
+ <a name="a19"/>
1276
+ ## License
1277
+
1278
+ (The MIT License)
1279
+
1280
+ Copyright (c) 2009-2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
1281
+
1282
+ Permission is hereby granted, free of charge, to any person obtaining
1283
+ a copy of this software and associated documentation files (the
1284
+ 'Software'), to deal in the Software without restriction, including
1285
+ without limitation the rights to use, copy, modify, merge, publish,
1286
+ distribute, sublicense, and/or sell copies of the Software, and to
1287
+ permit persons to whom the Software is furnished to do so, subject to
1288
+ the following conditions:
1289
+
1290
+ The above copyright notice and this permission notice shall be
1291
+ included in all copies or substantial portions of the Software.
1292
+
1293
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1294
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1295
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1296
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1297
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1298
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1299
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.