docpad-plugin-coffeemugg
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -40,4 +40,7 @@ // Generated by CoffeeScript 1.6.3 | ||
g_context = cm.CMContext(cmOptions); | ||
g_context.context = this; | ||
g_context.templateData = templateData; | ||
g_context.context = this; | ||
g_context.content = templateData.content; | ||
g_context.document = templateData.document; | ||
g_context.documentModel = templateData.documentModel; | ||
opts.content = g_context.render(content).toString(); | ||
@@ -44,0 +47,0 @@ return next(); |
{ | ||
"name": "docpad-plugin-coffeemugg", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Adds support for CoffeeMugg compilation to DocPad", | ||
@@ -5,0 +5,0 @@ "homepage": "http://docpad.org/plugin/coffeemugg", |
@@ -33,6 +33,10 @@ # CoffeeMugg Plugin for [DocPad](http://docpad.org) | ||
Coffeemuggs methods are all in the @ object so to obtain the docpad object or templateData etc.. you can use | ||
Coffeemuggs methods are all in the @\this scope so to obtain the docpad object or templateData etc.. you can use | ||
```coffeescript | ||
@context.docpad or @templateData etc.. | ||
@context.docpad | ||
@templateData | ||
@content | ||
@document | ||
@documentModel | ||
``` | ||
@@ -43,3 +47,3 @@ | ||
```coffeescript | ||
partial('my-partial', false, @templateData) | ||
partial('my-partial', false, {@templateData} ) | ||
``` | ||
@@ -46,0 +50,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
8589
55
113
1