Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
docpad-plugin-coffeemugg
Advanced tools
Adds support for CoffeeMugg to HTML compilation to DocPad
Convention: .html.coffee
Advantages over docpad-plugins-coffeecup:
npm install --save docpad-plugin-coffeemugg
##Example usage
# templateData and docpad variables are accessed via @context
@div ->
@p "I am a paragraph"
@raw "<p> This is unescaped, raw HTML </p>"
@text "<< This will be escaped ! >>"
By default we compress the output for all environments except the development environment. Set the format
option to either true
or false
to change this (true
formats nicely, false
compresses).
plugins:
coffeemugg:
options:
# The output HTML will be formatted all pretty.
# **Default: false**
format: false
# The "text" values are automatically HTML escaped.
# **Default: true** (use '@raw' tag for unescaped text.)
autoescape: true
# Array of plugins
# They are functions that take a context as argument
# or can be strings that will be passed to require()
plugins: []
Can be an array of functions or require() locations
[
(context) ->
context["showFruits"] = (fruits) ->
@ul ->
for fruit in fruits
@li fruit
"src/code/mytag" # would specify require("src/code/mytag")
]
Plugins in separate files and to be loaded via require should be exported in the usual nodejs fashion:
module.exports =
(context) ->
context["showFruits"] = (fruits) ->
@ul ->
for fruit in fruits
@li fruit
You can discover the history inside the History.md
file
You can discover the contributing instructions inside the Contributing.md
file
Licensed under the incredibly permissive MIT License
Copyright © 2013+ Stringz Solutions Ltd
Copyright © 2013+ Peter Flannery
FAQs
Adds support for CoffeeMugg compilation to DocPad
The npm package docpad-plugin-coffeemugg receives a total of 5 weekly downloads. As such, docpad-plugin-coffeemugg popularity was classified as not popular.
We found that docpad-plugin-coffeemugg 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.