
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
docpad-plugin-client-jade
Advanced tools
Adds support for Jade as a client-side template language to DocPad.
Adds support for Jade as a client-side template language to DocPad.
Convention: .js.cjade
npm install --save docpad-plugin-client-jade
add https://raw.github.com/visionmedia/jade/master/runtime.min.js to your pages before any client Jade templates
add your templates to the pages as scripts, i.e. having the documents/templates/something.js.cjade
, add it like
```
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 © 2012 Eugene Mirotin
FAQs
Adds support for Jade as a client-side template language to DocPad.
The npm package docpad-plugin-client-jade receives a total of 0 weekly downloads. As such, docpad-plugin-client-jade popularity was classified as not popular.
We found that docpad-plugin-client-jade demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.