npm i helper-timeago --save
var timeago = ;//=> '20 years ago'
With Lo-Dash or Underscore:
With Verb (lo-dash, with special delimiters to avoid delimiter collision in markdown docs):
See the tests for actual usage examples.
Register the helper
This should work with any engine, here are a few examples
Register the helper for use with any template engine
To register the helper for use with assemble v0.6.x:
Register the helper for use with verb:
var verb = ;verb;verb;
var handlebars = ;handlebars;
// as a mixin_;_;// passed on the context_;// as an importvar settings = imports: timeago: timeagoHelper;_;
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. To request or contribute a helper to the github.com/helpers org, please read this contributing guide to get started.
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 07, 2014. To update, run
npm i -g verb && verb.