🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

docpad-plugin-client-jade

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-client-jade

Adds support for Jade as a client-side template language to DocPad.

0.0.2
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Jade Plugin for DocPad for writing client-side templates

Adds support for Jade as a client-side template language to DocPad.

Convention: .js.cjade

Install

npm install --save docpad-plugin-client-jade

Use

```
  • use it from you script:

var html = JST['something']({contextvar: 'someval'});

The 'something' key is obtained from the path file by stripping the `.cjade` extension, then `.js` extension (see below how to configure), and then removing some common directory from the beginning of the path (see below how to configure).

## Configure

Read on Configuration file here: <https://github.com/bevry/docpad/wiki/Configuration>

**Note** that in your config the key must be `"client-jade"` (which is part of the plugin name after 'docpad-plugin-').

Currently the plugin supports the following options:

* `namespace` – string, the namespace functions are attached to, defaults to `JST`
* `prettify` – bool, if the output should be prettified, defaults to `true` in development and `false` in production
* `baseDir` — string, the base directory (relative to the `documents` root) to be stripped from the path when the key is generated, defaults to `templates`
* `stripJsExt` – bool, whether to strip `.js` extension when the key is generated



## License
Licensed under [MIT License](http://creativecommons.org/licenses/MIT/)
<br/>Copyright &copy; 2012 Eugene Mirotin

Keywords

docpad

FAQs

Package last updated on 05 Oct 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts