Comparing version 1.4.0 to 1.4.1
@@ -5,3 +5,3 @@ { | ||
"description": "Jade template runtime", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "template" |
module.exports = require('./lib/jade'); |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -283,3 +283,5 @@ 'use strict'; | ||
text: function() { | ||
return this.scan(/^(?:\| ?| )([^\n]+)/, 'text') || this.scan(/^(<[^\n]*)/, 'text'); | ||
return this.scan(/^(?:\| ?| )([^\n]+)/, 'text') || | ||
this.scan(/^\|?( )/, 'text') || | ||
this.scan(/^(<[^\n]*)/, 'text'); | ||
}, | ||
@@ -301,4 +303,7 @@ | ||
dot: function() { | ||
this.pipeless = true; | ||
return this.scan(/^\./, 'dot'); | ||
var match; | ||
if (match = this.scan(/^\./, 'dot')) { | ||
this.pipeless = true; | ||
return match; | ||
} | ||
}, | ||
@@ -379,3 +384,3 @@ | ||
yield: function() { | ||
'yield': function() { | ||
return this.scan(/^yield */, 'yield'); | ||
@@ -406,3 +411,3 @@ }, | ||
captures = /^ *([^\n]+)/.exec(this.input); | ||
if (!captures) { | ||
if (!captures || captures[1].trim() === '') { | ||
throw new Error('missing path for include:filter'); | ||
@@ -871,6 +876,2 @@ } | ||
fail: function () { | ||
if (/^ ($|\n)/.test(this.input)) { | ||
this.consume(1); | ||
return this.next(); | ||
} | ||
throw new Error('unexpected text ' + this.input.substr(0, 5)); | ||
@@ -877,0 +878,0 @@ }, |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "jade", | ||
"description": "Jade template engine", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -75,2 +75,2 @@ "maintainers": [ | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ # Jade - 模板引擎 |
@@ -0,0 +0,0 @@ # [![Jade - template engine ](http://i.imgur.com/5zf2aVt.png)](http://jade-lang.com/) |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.jade=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
670427
42
17024