Support Node.js 0.10–6 (#132)

* Update dependencies

* Switch from jsdom to cheerio

* Update the supported Node.js versions

* Recompile the client-side CSS and JS
This commit is contained in:
Rowan Manning
2016-05-26 15:33:58 +01:00
committed by Andrew Mee
parent 6bfb4f72d9
commit ae6208d87e
18 changed files with 177 additions and 183 deletions

View File

@@ -17,10 +17,10 @@
module.exports = helper;
function helper(register) {
function helper(hbs) {
// Simplify url by removing (eg http://, https://, trailing slashes) from url
register('simplify-url', function(context) {
hbs.registerHelper('simplify-url', function(context) {
return context.replace(/^https?:\/\//i, '').replace(/\/$/, '').toLowerCase();
});