 Handlebars.registerHelper 'ifEqual', (v1, v2, options) ->
     if v1 is v2 then options.fn @ else options.inverse @
 
+Handlebars.registerHelper 'ifNotEqual', (v1, v2, options) ->
+    if v1 isnt v2 then options.fn @ else options.inverse @
+
 Handlebars.registerHelper 'ifLT', (v1, v2, options) ->
     if v1 < v2 then options.fn @ else options.inverse @
 
 Handlebars.registerHelper 'ifGT', (v1, v2, options) ->
     if v1 > v2 then options.fn @ else options.inverse @
 
+# Override decimal rounding: {{fixedDecimal data.cpuUsage place="4"}}
+Handlebars.registerHelper 'fixedDecimal', (value, options) ->
+    if options.hash.place then place = options.hash.place else place = 2
+    +(value).toFixed(place)
+    
 Handlebars.registerHelper 'ifInSubFilter', (needle, haystack, options) ->
     return options.fn @ if haystack is 'all'
     if haystack.indexOf(needle) isnt -1

        options.fn @
    else
        options.inverse @

# {{#withLast [1, 2, 3]}}
#     {{! this = 3 }}

Handlebars.registerHelper 'timestampDuration', (timestamp) ->
    return '' if not timestamp
    moment.duration(timestamp).humanize()


# 1234567890 => 1 Aug 1991 15:00
Handlebars.registerHelper 'timestampFormatted', (timestamp) ->
