Skip to content

Latest commit

 

History

History
executable file
·
26 lines (17 loc) · 640 Bytes

README.md

File metadata and controls

executable file
·
26 lines (17 loc) · 640 Bytes

Livestamp.js for Meteor

Livestamp.js, a simple, unobtrusive jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements using Moment.js, packaged for Meteor.

Installation

meteor add copleykj:livestamp

Usage

A template helper is included to compensate for the initial delay when using livestamp alone.

<p>{{livestamp date}}</p>

You can also use plain html with the data-livestamp attribute as per livestamp documentation.

<span data-livestamp="2013-12-24T08:14:42.345Z"></span>