luifHumanize

A filter to cast the input to a moment.duration and call the method humanize on it.

The first argument is to use the suffix in the humanize function

Usage

{{ myValue | luifHumanize }}
{{ myValue | luifHumanize : usePrefix }}

enter '1.11:30:00' or 'PT35H30M' or such like

Set myValue to 1h -30m

myValue humanized : {{ myValue | luifHumanize }}

myValue humanized with a suffix : {{ myValue | luifHumanize : true }}