template-engine
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -61,3 +61,6 @@ var Class = require("core").Class; | ||
} else { | ||
console.log("* " + path); | ||
console.log(' - Reading JqTpl template...'); | ||
fileContents = fs.readFileSync(templatePath + templateFiles[i], 'utf8'); | ||
console.log(' - Compiling JqTpl template...'); | ||
resourceInstance.cache(templatePath+templateFiles[i], fileContents); | ||
@@ -64,0 +67,0 @@ } |
@@ -23,3 +23,3 @@ var Class = require("core").Class; | ||
this.cache = function(path, contents){ | ||
//console.log('Caching JqTpl template: ' + path); | ||
console.log(' - Caching JqTpl template...'); | ||
@@ -26,0 +26,0 @@ // caching |
@@ -61,4 +61,7 @@ var Class = require("core").Class; | ||
//FIXME: do wywalenia | ||
opalRequest.setHost('rtx.m4r2.onet'); | ||
// mozliwosc nadpisania gateway opala | ||
if(this._params.gateway){ | ||
opalRequest.setHost(this._params.gateway.host); | ||
opalRequest.setPort(this._params.gateway.port); | ||
} | ||
@@ -65,0 +68,0 @@ this._loader.addEventListener(OpalLoader.Event.JSON_RESPONSE, this._onJsonResponse, this); |
@@ -42,3 +42,3 @@ var Class = require("core").Class; | ||
} catch(e){ | ||
//console.log('Cannot cache resources: ' + e.message); | ||
console.log(' - ERROR: ' + e.message); | ||
process.exit(1); | ||
@@ -45,0 +45,0 @@ } |
@@ -1,15 +0,23 @@ | ||
{ "name" : "template-engine" | ||
, "version" : "0.0.3" | ||
, "description" : "Engine that renders templates of any kind" | ||
, "contributors" : ["Maciej Jastrzebski <artifipl@gmail.com>" | ||
,"Slawomir Janecki <janecki@gmail.com>" | ||
,"Jakub Lekstan <kuebzky@gmail.com>"] | ||
, "dependencies": { | ||
"jqtpl": ">= 1.0.0" | ||
, "core": ">= 0.0.1" | ||
} | ||
, "main": "lib/TemplateServer.js" | ||
, "license" : | ||
{ "type" : "MIT" | ||
, "url" : "https://github.com/isaacs/semver/raw/master/LICENSE" } | ||
{ | ||
"name": "template-engine", | ||
"version": "0.0.4", | ||
"description": "Engine that renders templates of any kind", | ||
"contributors": [ | ||
"Maciej Jastrzebski <artifipl@gmail.com>", | ||
"Slawomir Janecki <janecki@gmail.com>", | ||
"Jakub Lekstan <kuebzky@gmail.com>" | ||
], | ||
"dependencies": { | ||
"jqtpl": ">= 1.0.0", | ||
"core": ">= 0.0.1" | ||
}, | ||
"main": "lib/TemplateServer.js", | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/isaacs/semver/raw/master/LICENSE" | ||
}, | ||
"devDependencies": {}, | ||
"engines": { | ||
"node": "*" | ||
} | ||
} |
5875389
36020