2015-11-02 11:36:10 +01:00

133 lines
9.0 KiB
JSON

{
"name": "jade",
"description": "A clean, whitespace-sensitive template language for writing HTML",
"version": "1.11.0",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
},
"maintainers": [
{
"name": "Forbes Lindesay",
"email": "forbes@lindesay.co.uk"
},
{
"name": "Matthias Le Brun",
"email": "mlbli@me.com"
},
{
"name": "Joshua Appelman",
"email": "joshua@jbna.nl"
},
{
"name": "Jonathan Ong",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "Alex Kocharin",
"email": "alex@kocharin.ru"
},
{
"name": "Hemanth",
"email": "hemanth.hm@gmail.com"
},
{
"name": "Timothy Gu",
"email": "timothygu99@gmail.com"
},
{
"name": "Andreas Lubbe",
"email": "git@lubbe.org"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/jadejs/jade"
},
"main": "lib",
"bin": {
"jade": "./bin/jade.js"
},
"dependencies": {
"character-parser": "1.2.1",
"clean-css": "^3.1.9",
"commander": "~2.6.0",
"constantinople": "~3.0.1",
"jstransformer": "0.0.2",
"mkdirp": "~0.5.0",
"transformers": "2.1.0",
"uglify-js": "^2.4.19",
"void-elements": "~2.0.1",
"with": "~4.0.0"
},
"devDependencies": {
"browserify": "*",
"browserify-middleware": "~4.1.0",
"code-mirror": "~3.22.0",
"coffee-script": "*",
"coveralls": "^2.11.2",
"express": "~4.10.4",
"github-basic": "^4.1.2",
"handle": "~1.0.0",
"highlight-codemirror": "~4.1.0",
"inconsolata": "0.0.2",
"istanbul": "*",
"jade-code-mirror": "~1.0.5",
"jade-highlighter": "~1.0.5",
"jstransformer-cdata": "0.0.3",
"jstransformer-coffee-script": "0.0.2",
"jstransformer-less": "^1.0.0",
"jstransformer-marked": "0.0.1",
"jstransformer-stylus": "0.0.1",
"jstransformer-verbatim": "0.0.2",
"less": "<2.0.0",
"less-file": "0.0.9",
"linify": "*",
"lsr": "^1.0.0",
"marked": "~0.3.3",
"mocha": "*",
"opener": "^1.3.0",
"pull-request": "^3.0.0",
"rimraf": "^2.2.8",
"should": "*",
"stop": "^3.0.0-rc1",
"stylus": "*",
"twbs": "0.0.6",
"uglify-js": "*"
},
"component": {
"scripts": {
"jade": "runtime.js"
}
},
"scripts": {
"test": "mocha -R spec",
"precoverage": "rimraf coverage && rimraf cov-pt*",
"coverage": "istanbul cover --report none --dir cov-pt0 node_modules/mocha/bin/_mocha -- -R dot",
"postcoverage": "istanbul report --include cov-pt\\*/coverage.json && rimraf cov-pt*",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls",
"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/index.js --standalone jade -x ./node_modules/transformers > jade.js",
"compile-runtime": "browserify ./lib/runtime.js --standalone jade > runtime.js"
},
"browser": {
"fs": false,
"./lib/filters.js": "./lib/filters-client.js"
},
"homepage": "http://jade-lang.com",
"readme": "# [![Jade - Node Template Engine](http://garthdb.com/img/jade_branding/jade-01.svg)](http://jade-lang.com/)\n\nFull documentation is at [jade-lang.com](http://jade-lang.com/)\n\n Jade is a high performance template engine heavily influenced by [Haml](http://haml-lang.com)\n and implemented with JavaScript for [node](http://nodejs.org) and browsers. For bug reports,\n feature requests and questions, [open an issue](https://github.com/jadejs/jade/issues/new).\n For discussion join the [chat room](https://gitter.im/jadejs/jade).\n\n You can test drive Jade online [here](http://naltatis.github.com/jade-syntax-docs).\n\n [![Build Status](https://img.shields.io/travis/jadejs/jade/master.svg?style=flat)](https://travis-ci.org/jadejs/jade)\n [![Coverage Status](https://img.shields.io/coveralls/jadejs/jade/master.svg?style=flat)](https://coveralls.io/r/jadejs/jade?branch=master)\n [![Dependency Status](https://img.shields.io/david/jadejs/jade.svg?style=flat)](https://david-dm.org/jadejs/jade)\n [![devDependencies Status](https://img.shields.io/david/dev/jadejs/jade.svg?style=flat)](https://david-dm.org/jadejs/jade#info=devDependencies)\n [![NPM version](https://img.shields.io/npm/v/jade.svg?style=flat)](http://badge.fury.io/js/jade)\n [![Join Gitter Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat)](https://gitter.im/jadejs/jade?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n## Installation\n\nvia npm:\n\n```bash\n$ npm install jade\n```\n\n## Syntax\n\nJade is a clean, whitespace sensitive syntax for writing html. Here is a simple example:\n\n```jade\ndoctype html\nhtml(lang=\"en\")\n head\n title= pageTitle\n script(type='text/javascript').\n if (foo) bar(1 + 5)\n body\n h1 Jade - node template engine\n #container.col\n if youAreUsingJade\n p You are amazing\n else\n p Get on it!\n p.\n Jade is a terse and simple templating language with a\n strong focus on performance and powerful features.\n```\n\nbecomes\n\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <title>Jade</title>\n <script type=\"text/javascript\">\n if (foo) bar(1 + 5)\n </script>\n </head>\n <body>\n <h1>Jade - node template engine</h1>\n <div id=\"container\" class=\"col\">\n <p>You are amazing</p>\n <p>Jade is a terse and simple templating language with a strong focus on performance and powerful features.</p>\n </div>\n </body>\n</html>\n```\n\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/jadejs/jade/blob/master/jade.md) and [here](https://github.com/jadejs/jade/blob/master/jade-language.md)\n\n## API\n\nFor full API, see [jade-lang.com/api](http://jade-lang.com/api/)\n\n```js\nvar jade = require('jade');\n\n// compile\nvar fn = jade.compile('string of jade', options);\nvar html = fn(locals);\n\n// render\nvar html = jade.render('string of jade', merge(options, locals));\n\n// renderFile\nvar html = jade.renderFile('filename.jade', merge(options, locals));\n```\n\n### Options\n\n - `filename` Used in exceptions, and required when using includes\n - `compileDebug` When `false` no debug instrumentation is compiled\n - `pretty` Add pretty-indentation whitespace to output _(false by default)_\n\n## Browser Support\n\n The latest version of jade can be download for the browser in standalone form from [here](https://github.com/jadejs/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/jadejs/jade/raw/master/runtime.js) library on the client.\n\n To compile a template for use on the client using the command line, do:\n\n```console\n$ jade --client --no-debug filename.jade\n```\n\nwhich will produce `filename.js` containing the compiled template.\n\n## Command Line\n\nAfter installing the latest version of [node](http://nodejs.org/), install with:\n\n```console\n$ npm install jade -g\n```\n\nand run with\n\n```console\n$ jade --help\n```\n\n## Additional Resources\n\nTutorials:\n\n - cssdeck interactive [Jade syntax tutorial](http://cssdeck.com/labs/learning-the-jade-templating-engine-syntax)\n - cssdeck interactive [Jade logic tutorial](http://cssdeck.com/labs/jade-templating-tutorial-codecast-part-2)\n - [Jade について。](https://gist.github.com/japboy/5402844) (A Japanese Tutorial)\n - [Jade - 模板引擎](https://github.com/jadejs/jade/blob/master/Readme_zh-cn.md)\n\nImplementations in other languages:\n\n - [php](http://github.com/everzet/jade.php)\n - [scala](http://scalate.fusesource.org/versions/snapshot/documentation/scaml-reference.html)\n - [ruby](https://github.com/slim-template/slim)\n - [python](https://github.com/SyrusAkbary/pyjade)\n - [java](https://github.com/neuland/jade4j)\n\nOther:\n\n - [Emacs Mode](https://github.com/brianc/jade-mode)\n - [Vim Syntax](https://github.com/digitaltoad/vim-jade)\n - [TextMate Bundle](http://github.com/miksago/jade-tmbundle)\n - [Coda/SubEtha syntax Mode](https://github.com/aaronmccall/jade.mode)\n - [Screencasts](http://tjholowaychuk.com/post/1004255394/jade-screencast-template-engine-for-nodejs)\n - [html2jade](https://github.com/donpark/html2jade) converter\n - [jade2php](https://github.com/SE7ENSKY/jade2php) converter\n - [Jade Server](https://github.com/ded/jade-server) Ideal for building local prototypes apart from any application\n\n## License\n\nMIT\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/jadejs/jade/issues"
},
"_id": "jade@1.11.0",
"dist": {
"shasum": "2948ac992cfd4c366ff1e3c7f58486f163bc246a"
},
"_from": "jade@~1.11.0",
"_resolved": "https://registry.npmjs.org/jade/-/jade-1.11.0.tgz"
}