ljs-template
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -165,7 +165,3 @@ 'use strict'; | ||
} | ||
try { | ||
fn = exports.compile(minify(template), options); | ||
} catch(tmp) { | ||
fn = exports.compile(template, options); | ||
} | ||
fn = exports.compile(template, options); | ||
if (options.cache) { | ||
@@ -177,8 +173,2 @@ exports.cache.set(path, fn); | ||
function minify(content) { | ||
var lineEnding = (content.indexOf('\r') != -1)?'\r':'' + (content.indexOf('\n') != -1)?'\n':''; | ||
var regexp = "("+lineEnding+"){1,2}(("+lineEnding+")*)[ |\t]*({[%|#|/](?!=).*)"; | ||
return content.replace(new RegExp(regexp, 'g'), "$2$4"); | ||
} | ||
/** | ||
@@ -185,0 +175,0 @@ * Get the template function. |
{ | ||
"name": "ljs-template", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Lighter Javascript Templates", | ||
@@ -5,0 +5,0 @@ "main": "lib/ljs.js", |
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
32162
972