Created
August 4, 2011 17:24
-
-
Save xjamundx/1125686 to your computer and use it in GitHub Desktop.
Epress.js Date Helper Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main app | |
var helpers = require('./util/helpers') | |
app.helpers({"timeAgo": helpers.timeAgo}) | |
// view code | |
<span class="created"><%= timeAgo(activity.created) %></span> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment