derby-jade
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -425,3 +425,3 @@ /*! | ||
var captures; | ||
if (captures = /^((?:if|unless|else if|else|with|each|bound|unbound)\*?) *([^\n]*)/.exec(this.input)) { | ||
if (captures = /^((?:if|unless|else if|else|with|each|bound|unbound|on|unescaped)\*?) *([^\n]*)/.exec(this.input)) { | ||
this.consume(captures[0].length); | ||
@@ -433,10 +433,12 @@ var type = captures[1] | ||
switch (type) { | ||
case 'if': js = '\'{{if ' + js + '}}\''; break; | ||
case 'unless': js = '\'{{unless ' + js + '}}\''; break; | ||
case 'else if': js = '\'{{else if ' + js + '}}\''; break; | ||
case 'else': js = '\'{{else}}\''; break; | ||
case 'with': js = '\'{{with ' + js + '}}\''; break; | ||
case 'each': js = '\'{{each ' + js + '}}\''; break; | ||
case 'bound': js = '\'{{bound}}\''; break; | ||
case 'unbound': js = '\'{{unbound}}\''; break; | ||
case 'if': js = '\'{{if ' + js + '}}\''; break; | ||
case 'unless': js = '\'{{unless ' + js + '}}\''; break; | ||
case 'else if': js = '\'{{else if ' + js + '}}\''; break; | ||
case 'else': js = '\'{{else}}\''; break; | ||
case 'with': js = '\'{{with ' + js + '}}\''; break; | ||
case 'each': js = '\'{{each ' + js + '}}\''; break; | ||
case 'bound': js = '\'{{bound}}\''; break; | ||
case 'unbound': js = '\'{{unbound}}\''; break; | ||
case 'unescaped': js = '\'{{unescaped}}\''; break; | ||
case 'on': js = '\'{{on ' + js + '}}\''; break; | ||
} | ||
@@ -443,0 +445,0 @@ return this.tok('code', js) |
{ | ||
"name": "derby-jade", | ||
"description": "Jade for Derby.js", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"author": { | ||
@@ -16,3 +16,3 @@ "name": "Pavel Zhukov", | ||
}, | ||
"main": "./index.js", | ||
"main": "./derby_adapter.js", | ||
"bin": { | ||
@@ -19,0 +19,0 @@ "jade": "./bin/jade" |
@@ -8,2 +8,13 @@ # Jade static compiler for Derby.js | ||
## Usage | ||
Right after creating your Derby app, add: | ||
```js | ||
// Add Jade compilation support | ||
app.serverUse(module, 'derby-jade'); | ||
``` | ||
Make sure this is before any calls to `app.loadViews()`. | ||
## Derby.js-specific syntax | ||
@@ -10,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
442431
54
6204
115