You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
3.2 KiB

  1. {
  2. "name": "docpad-plugin-jade",
  3. "version": "2.3.1",
  4. "description": "Adds support for the Jade templating engine to DocPad.",
  5. "homepage": "http://docpad.org/plugin/jade",
  6. "keywords": [
  7. "docpad",
  8. "docpad-plugin",
  9. "jade",
  10. "templating",
  11. "templates",
  12. "render",
  13. "rendering"
  14. ],
  15. "author": {
  16. "name": "Bevry Pty Ltd",
  17. "email": "us@bevry.me",
  18. "url": "http://bevry.me"
  19. },
  20. "maintainers": [
  21. {
  22. "name": "Benjamin Lupton",
  23. "email": "b@lupton.cc",
  24. "url": "https://github.com/balupton"
  25. }
  26. ],
  27. "contributors": [
  28. {
  29. "name": "Benjamin Lupton",
  30. "email": "b@lupton.cc",
  31. "url": "https://github.com/balupton"
  32. },
  33. {
  34. "name": "Vladislav Botvin",
  35. "email": "darkvlados@me.com",
  36. "url": "https://github.com/darrrk"
  37. },
  38. {
  39. "name": "Evan Bovie",
  40. "email": "evan@bovie.me",
  41. "url": "https://github.com/phaseOne"
  42. }
  43. ],
  44. "bugs": {
  45. "url": "http://docpad.org/plugin/jade/issues"
  46. },
  47. "repository": {
  48. "type": "git",
  49. "url": "https://github.com/docpad/docpad-plugin-jade.git"
  50. },
  51. "engines": {
  52. "node": ">=0.4",
  53. "docpad": "6.x"
  54. },
  55. "dependencies": {
  56. "jade": "~0.28.1"
  57. },
  58. "devDependencies": {
  59. "coffee-script": "~1.4.0"
  60. },
  61. "main": "./out/jade.plugin.js",
  62. "scripts": {
  63. "test": "node ./out/jade.test.js"
  64. },
  65. "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<br/>Copyright &copy; 2012+ [Bevry Pty Ltd](http://bevry.me)\n<br/>Copyright &copy; 2011 [Benjamin Lupton](http://balupton.com)\n",
  66. "readmeFilename": "README.md",
  67. "_id": "docpad-plugin-jade@2.3.1",
  68. "_from": "docpad-plugin-jade@~2.3.1"
  69. }