Write the JavaScript for URL filtering

This commit is contained in:
Rowan Manning
2014-01-14 11:40:23 +00:00
parent a605835cc9
commit d8cb1b6c71
8 changed files with 119 additions and 53 deletions

12
view/helper/string.js Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = helper;
function helper (register) {
// Convert a string to lower-case
register('lowercase', function (context) {
return context.toLowerCase();
});
}