Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed automatic name for assets

  • Loading branch information...
commit cb91c8dbab2e5b75bb2ca2d09b2d92865fe9b4d6 1 parent 7d509b6
@moul authored
Showing with 3 additions and 1 deletion.
  1. +1 −0  lib/app.js
  2. +1 −1  package.json
  3. +1 −0  src/app.coffee
View
1  lib/app.js
@@ -498,6 +498,7 @@
return;
}
parent_name = utils.getParentFolderName(dir, ["lib"]);
+ parent_name = parent_name.replace(/[^a-zA-Z0-9]/, '_');
this.config.locals["" + parent_name + "_assets"] = global[parent_name] = context = {};
favicon = "" + dir + "/public/favicon.ico";
if (exists(favicon)) {
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "tapas",
- "version": "0.3.2",
+ "version": "0.3.3",
"description": "Preconfigured Express environment with multiple modules and helpers",
"main": "index",
"dependencies": {
View
1  src/app.coffee
@@ -343,6 +343,7 @@ class ksApp
if not exists "#{dir}/public"
return
parent_name = utils.getParentFolderName(dir, ["lib"])
+ parent_name = parent_name.replace(/[^a-zA-Z0-9]/, '_')
@config.locals["#{parent_name}_assets"] = global[parent_name] = context = {}
favicon = "#{dir}/public/favicon.ico"
Please sign in to comment.
Something went wrong with that request. Please try again.