{ "name": "docpad-plugin-jade", "version": "2.3.1", "description": "Adds support for the Jade templating engine to DocPad.", "homepage": "http://docpad.org/plugin/jade", "keywords": [ "docpad", "docpad-plugin", "jade", "templating", "templates", "render", "rendering" ], "author": { "name": "Bevry Pty Ltd", "email": "us@bevry.me", "url": "http://bevry.me" }, "maintainers": [ { "name": "Benjamin Lupton", "email": "b@lupton.cc", "url": "https://github.com/balupton" } ], "contributors": [ { "name": "Benjamin Lupton", "email": "b@lupton.cc", "url": "https://github.com/balupton" }, { "name": "Vladislav Botvin", "email": "darkvlados@me.com", "url": "https://github.com/darrrk" }, { "name": "Evan Bovie", "email": "evan@bovie.me", "url": "https://github.com/phaseOne" } ], "bugs": { "url": "http://docpad.org/plugin/jade/issues" }, "repository": { "type": "git", "url": "https://github.com/docpad/docpad-plugin-jade.git" }, "engines": { "node": ">=0.4", "docpad": "6.x" }, "dependencies": { "jade": "~0.28.1" }, "devDependencies": { "coffee-script": "~1.4.0" }, "main": "./out/jade.plugin.js", "scripts": { "test": "node ./out/jade.test.js" }, "readme": "# Jade Plugin for DocPad\nAdds support for the [Jade](http://jade-lang.com/) templating engine to [DocPad](https://docpad.org)\n\nConvention: `.anything.jade`\n\n\n## Install\n\n```\nnpm install --save docpad-plugin-jade\n```\n\n\n## Usage\n\n### Template Helpers as Filters\n\nUse just like any jade template. However, we do add any docpad template helpers you may have as jade filters. There are two ways you can use these filters:\n\n``` jade\n-# first way, calls the template helper like: myTemplateHelper(\"content\", {opt1=\"blah\",opt2=\"blah\",opt3=true})\n:myTemplateHelper(opt1=blah,opt2=blah,opt3)\n content\n\n-# second way, calls the template helper like: myTemplateHelper(arg1, arg2)\n:myTemplateHelper(args)\n arg1\n arg2\n```\n\nNOTE: Not all template helpers support being called this way. If it doesn't work, we'd recommend using the text plugin to render eco which includes your template helper call. See following section.\n\n\n### Rendering with the Text Plugin\nYou can use the [text plugin](http://docpad.org/plugin/text) to render different parts of your template with different markups that are support by your docpad setup. Once installed, you can do things like:\n\n``` jade\n:t(render=\"markdown\")\n here is some *markdown*\n\n:t(render=\"html.md.eco\")\n here is some <%-'eco'.toUpperCase()%> to *markdown* to html\n\n:t(render=\"html.eco\")\n my url is <%-@document.url%>\n```\n\n\n## History\nYou can discover the history inside the `History.md` file\n\n\n## License\nLicensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/)\n
Copyright © 2012+ [Bevry Pty Ltd](http://bevry.me)\n
Copyright © 2011 [Benjamin Lupton](http://balupton.com)\n", "readmeFilename": "README.md", "_id": "docpad-plugin-jade@2.3.1", "_from": "docpad-plugin-jade@~2.3.1" }