-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
99 lines (99 loc) · 7.67 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "jade",
"description": "Jade template engine",
"version": "1.7.0",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
},
"maintainers": [
{
"name": "forbeslindesay",
"email": "forbes@lindesay.co.uk"
},
{
"name": "bloodyowl"
},
{
"name": "jbnicolai",
"email": "joshua@jbna.nl"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/jade"
},
"main": "./index.js",
"bin": {
"jade": "./bin/jade.js"
},
"dependencies": {
"character-parser": "1.2.0",
"commander": "2.1.0",
"constantinople": "~2.0.0",
"mkdirp": "~0.5.0",
"monocle": "1.1.51",
"transformers": "2.1.0",
"void-elements": "~1.0.0",
"with": "~3.0.0"
},
"devDependencies": {
"coffee-script": "*",
"mocha": "*",
"istanbul": "*",
"markdown": "*",
"stylus": "*",
"should": "*",
"less": "*",
"uglify-js": "*",
"browserify": "*",
"linify": "*",
"less-file": "0.0.8",
"express": "~3.4.8",
"browserify-middleware": "~2.4.0",
"twbs": "0.0.6",
"highlight-codemirror": "~3.20.0",
"inconsolata": "0.0.2",
"jade-code-mirror": "~1.0.5",
"code-mirror": "~3.22.0",
"handle": "~1.0.0",
"jade-highlighter": "~1.0.5",
"marked": "~0.3.2",
"stop": "^3.0.0-rc1",
"opener": "^1.3.0",
"github-basic": "^3.0.0",
"pull-request": "^3.0.0",
"lsr": "^1.0.0",
"rimraf": "^2.2.8"
},
"component": {
"scripts": {
"jade": "runtime.js"
}
},
"scripts": {
"test": "mocha -R spec && npm run coverage",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha",
"prepublish": "npm prune && linify transform bin && npm run build",
"build": "npm run compile",
"compile": "npm run compile-full && npm run compile-runtime",
"compile-full": "browserify ./lib/jade.js --standalone jade -x ./node_modules/transformers > jade.js",
"compile-runtime": "browserify ./lib/runtime.js --standalone jade > runtime.js"
},
"browser": {
"./lib/filters.js": "./lib/filters-client.js"
},
"readme": "# [![Jade - template engine ](http://i.imgur.com/5zf2aVt.png)](http://jade-lang.com/)\r\n\r\nFull documentation is at [jade-lang.com](http://jade-lang.com/)\r\n\r\n Jade is a high performance template engine heavily influenced by [Haml](http://haml-lang.com)\r\n and implemented with JavaScript for [node](http://nodejs.org). For discussion join the [Google Group](http://groups.google.com/group/jadejs).\r\n\r\n You can test drive Jade online [here](http://naltatis.github.com/jade-syntax-docs).\r\n\r\n [![Build Status](https://img.shields.io/travis/visionmedia/jade/master.svg)](https://travis-ci.org/visionmedia/jade)\r\n [![Dependency Status](https://img.shields.io/gemnasium/visionmedia/jade.svg)](https://gemnasium.com/visionmedia/jade)\r\n [![NPM version](https://img.shields.io/npm/v/jade.svg)](http://badge.fury.io/js/jade)\r\n\r\n## Installation\r\n\r\nvia npm:\r\n\r\n```bash\r\n$ npm install jade\r\n```\r\n\r\n## Syntax\r\n\r\nJade is a clean, whitespace sensitive syntax for writing html. Here is a simple example:\r\n\r\n```jade\r\ndoctype html\r\nhtml(lang=\"en\")\r\n head\r\n title= pageTitle\r\n script(type='text/javascript').\r\n if (foo) bar(1 + 5)\r\n body\r\n h1 Jade - node template engine\r\n #container.col\r\n if youAreUsingJade\r\n p You are amazing\r\n else\r\n p Get on it!\r\n p.\r\n Jade is a terse and simple templating language with a\r\n strong focus on performance and powerful features.\r\n```\r\n\r\nbecomes\r\n\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Jade</title>\r\n <script type=\"text/javascript\">\r\n if (foo) bar(1 + 5)\r\n </script>\r\n </head>\r\n <body>\r\n <h1>Jade - node template engine</h1>\r\n <div id=\"container\" class=\"col\">\r\n <p>You are amazing</p>\r\n <p>Jade is a terse and simple templating language with a strong focus on performance and powerful features.</p>\r\n </div>\r\n </body>\r\n</html>\r\n```\r\n\r\nThe official [jade tutorial](http://jade-lang.com/tutorial/) is a great place to start. While that (and the syntax documentation) is being finished, you can view some of the old documentation [here](https://github.com/visionmedia/jade/blob/master/jade.md) and [here](https://github.com/visionmedia/jade/blob/master/jade-language.md)\r\n\r\n## API\r\n\r\nFor full API, see [jade-lang.com/api](http://jade-lang.com/api/)\r\n\r\n```js\r\nvar jade = require('jade');\r\n\r\n// compile\r\nvar fn = jade.compile('string of jade', options);\r\nvar html = fn(locals);\r\n\r\n// render\r\nvar html = jade.render('string of jade', merge(options, locals));\r\n\r\n// renderFile\r\nvar html = jade.renderFile('filename.jade', merge(options, locals));\r\n```\r\n\r\n### Options\r\n\r\n - `filename` Used in exceptions, and required when using includes\r\n - `compileDebug` When `false` no debug instrumentation is compiled\r\n - `pretty` Add pretty-indentation whitespace to output _(false by default)_\r\n\r\n## Browser Support\r\n\r\n The latest version of jade can be download for the browser in standalone form from [here](https://github.com/visionmedia/jade/raw/master/jade.js). It only supports the very latest browsers though, and is a large file. It is recommended that you pre-compile your jade templates to JavaScript and then just use the [runtime.js](https://github.com/visionmedia/jade/raw/master/runtime.js) library on the client.\r\n\r\n To compile a template for use on the client using the command line, do:\r\n\r\n```console\r\n$ jade --client --no-debug filename.jade\r\n```\r\n\r\nwhich will produce `filename.js` containing the compiled template.\r\n\r\n## Command Line\r\n\r\nAfter installing the latest version of [node](http://nodejs.org/), install with:\r\n\r\n```console\r\n$ npm install jade -g\r\n```\r\n\r\nand run with\r\n\r\n```console\r\n$ jade --help\r\n```\r\n\r\n## Additional Resources\r\n\r\nTutorials:\r\n\r\n - cssdeck interactive [Jade syntax tutorial](http://cssdeck.com/labs/learning-the-jade-templating-engine-syntax)\r\n - cssdeck interactive [Jade logic tutorial](http://cssdeck.com/labs/jade-templating-tutorial-codecast-part-2)\r\n - [Jade について。](https://gist.github.com/japboy/5402844) (A Japanese Tutorial)\r\n - [Jade - 模板引擎](https://github.com/visionmedia/jade/blob/master/Readme_zh-cn.md)\r\n\r\nImplementations in other languages:\r\n\r\n - [php](http://github.com/everzet/jade.php)\r\n - [scala](http://scalate.fusesource.org/versions/snapshot/documentation/scaml-reference.html)\r\n - [ruby](https://github.com/slim-template/slim)\r\n - [python](https://github.com/SyrusAkbary/pyjade)\r\n - [java](https://github.com/neuland/jade4j)\r\n\r\nOther:\r\n\r\n - [Emacs Mode](https://github.com/brianc/jade-mode)\r\n - [Vim Syntax](https://github.com/digitaltoad/vim-jade)\r\n - [TextMate Bundle](http://github.com/miksago/jade-tmbundle)\r\n - [Coda/SubEtha syntax Mode](https://github.com/aaronmccall/jade.mode)\r\n - [Screencasts](http://tjholowaychuk.com/post/1004255394/jade-screencast-template-engine-for-nodejs)\r\n - [html2jade](https://github.com/donpark/html2jade) converter\r\n - [Jade Server](https://github.com/ded/jade-server) Ideal for building local prototypes apart from any application\r\n\r\n## License\r\n\r\nMIT\r\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/visionmedia/jade/issues"
},
"homepage": "https://github.com/visionmedia/jade",
"_id": "jade@1.7.0",
"dist": {
"shasum": "2cc8cb3d2eaeee82db6be665f71002336e669833"
},
"_from": "jade@1.1 - 1.7",
"_resolved": "https://registry.npmjs.org/jade/-/jade-1.7.0.tgz"
}