template-engine
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -29,3 +29,3 @@ var Class = require('core').Class; | ||
if(!this.configuration.runtime.hasOwnProperty('static_url')){ | ||
this.configuration.runtime.static_url = "http://ocdn.eu"; | ||
this.configuration.runtime.static_url = "http://ocdn.eu/static"; | ||
} | ||
@@ -37,3 +37,3 @@ if(!this.configuration.runtime.hasOwnProperty('resource_url')){ | ||
this.configuration.runtime = { | ||
static_url: "http://ocdn.eu", | ||
static_url: "http://ocdn.eu/static", | ||
resource_url: "http://ocdn.eu" | ||
@@ -78,3 +78,3 @@ } | ||
} else if(resourcePath.indexOf('/static/')==0){ | ||
return new OcdnStaticUrl(this.configuration.runtime.static_url + resourcePath); | ||
return new OcdnStaticUrl(this.configuration.runtime.static_url + resourcePath.replace('/static', '')); | ||
} else if(resourcePath.indexOf('/files/')==0){ | ||
@@ -81,0 +81,0 @@ return new OcdnFilesUrl(this.configuration.runtime.static_url + resourcePath); |
{ | ||
"name": "template-engine", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Engine that renders templates of any kind", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
5943965