Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

derby-jade

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derby-jade - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

.idea/jsLibraryMappings.xml

20

lib/lexer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc