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.
 
 
 
Jack Lukic a8914d32d7 Moves some important logic from toggle to show in popup, so it can be called programmatically 11 years ago
..
node_modules Adds node modules to gitignore too much issues 11 years ago
out Missing updates from home lost during last sick week 11 years ago
.npmignore Fixes issue with accidental submodule 11 years ago
Contributing.md Updates docpad, ports some reveal code left in branch (still fucked) 11 years ago
LICENSE.md Updates docpad, ports some reveal code left in branch (still fucked) 11 years ago
README.md Missing updates from home lost during last sick week 11 years ago
package.json Merge branch 'master' of github.com:quirkyinc/semantic 11 years ago

README.md

Jade Plugin for DocPad

Build Status NPM version Flattr donate button PayPayl donate button

Adds support for the Jade templating engine to DocPad

Convention: .anything.jade

Install

npm install --save docpad-plugin-jade

Usage

Template Helpers as Filters

Use 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:

-# first way, calls the template helper like: myTemplateHelper("content", {opt1="blah",opt2="blah",opt3=true})
:myTemplateHelper(opt1=blah,opt2=blah,opt3)
    content

-# second way, calls the template helper like: myTemplateHelper(arg1, arg2)
:myTemplateHelper(args)
    arg1
    arg2

NOTE: 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.

Rendering with the Text Plugin

You can use the text plugin to render different parts of your template with different markups that are support by your docpad setup. Once installed, you can do things like:

:t(render="markdown")
    here is some *markdown*

:t(render="html.md.eco")
    here is some <%-'eco'.toUpperCase()%> to *markdown* to html

:t(render="html.eco")
    my url is <%-@document.url%>

History

You can discover the history inside the History.md file

Contributing

You can discover the contributing instructions inside the Contributing.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2012+ Bevry Pty Ltd us@bevry.me
Copyright © 2011 Benjamin Lupton b@lupton.cc