From 57b87aebef1bde7fd5c024f0af835f3bd33fc553 Mon Sep 17 00:00:00 2001 From: "pabs@pablotron.org" Date: Thu, 18 Dec 2014 01:12:05 -0500 Subject: remove pluralize and add s filter --- luigi-template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luigi-template.js b/luigi-template.js index 55ecf25..610e120 100644 --- a/luigi-template.js +++ b/luigi-template.js @@ -84,8 +84,8 @@ LuigiTemplate = (function() { return (v || '').toLowerCase(); }, - pluralize: function(v) { - return v + 's'; + s: function(v) { + return (v == 1) ? '' : 's'; }, length: function(v) { -- cgit v1.2.3