templates
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -12,7 +12,8 @@ var fs, jade, path, production; | ||
module.exports = function(options) { | ||
var build, get, refresh, runtime, templates; | ||
var build, get, refresh, runtime, runtimePath, templates; | ||
options.namespace || (options.namespace = "window.templates"); | ||
options.url || (options.url = "/templates.js"); | ||
options.src || (options.src = process.join(process.cwd(), "templates")); | ||
runtime = fs.readFileSync('../node_modules/jade/runtime.js').toString(); | ||
runtimePath = path.join(__dirname, "..", "node_modules", "jade", "runtime.js"); | ||
runtime = fs.readFileSync(runtimePath).toString(); | ||
templates = null; | ||
@@ -66,3 +67,3 @@ refresh = function(dir, templates) { | ||
str = unescape(str); | ||
if (!production) { | ||
if (production) { | ||
parser = require('uglify-js').parser; | ||
@@ -69,0 +70,0 @@ uglify = require('uglify-js').uglify; |
@@ -5,3 +5,3 @@ { | ||
"description": "Templates is a template prepackager for Express", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"repository": { | ||
@@ -22,7 +22,5 @@ "url": "" | ||
}, | ||
"devDependencies": { | ||
"express": "2.5.x" | ||
}, | ||
"devDependencies": {}, | ||
"main": "lib/templates", | ||
"optionalDependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
9850
0
84