Permalink
Browse files

move github URL into config instead of hardcoding it

  • Loading branch information...
1 parent ba88096 commit 6debbd7d3c6fc9b6ca41005e7b6359c9ba1a7868 @toolness committed Jan 16, 2013
Showing with 4 additions and 3 deletions.
  1. +2 −2 bin/build-i18n.js
  2. +2 −1 js/require-config.js
View
4 bin/build-i18n.js
@@ -63,8 +63,8 @@ fs.readdirSync(templateDir).forEach(function(filename) {
root[key] = value;
metadata[key] = {
help: 'This string appears in ' +
- '<a href="https://github.com/mozilla/friendlycode/blob/gh-pages/templates/' + filename + '">' +
- filename + '</a>.'
+ '<a href="' + config.githubUrl + '/blob/gh-pages/templates/' +
+ filename + '">' + filename + '</a>.'
};
}
});
View
3 js/require-config.js
@@ -70,7 +70,8 @@ var require = {
i18n: "require-plugins/i18n",
test: "../test",
templates: "../templates"
- }
+ },
+ githubUrl: "https://github.com/mozilla/friendlycode"
};
if (typeof(module) == 'object' && module.exports) {

0 comments on commit 6debbd7

Please sign in to comment.