tpl: Add now function
authorNishanth Shanmugham <nishanths@utexas.edu>
Sun, 1 Jan 2017 01:50:46 +0000 (19:50 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 1 Jan 2017 01:50:46 +0000 (02:50 +0100)
commitcabc6b31866e3bb86759f6615a83cec4c3610e82
treefabca26b47b2b277da27e08e6845df365eb0bad7
parent707d3cf13777a23ba6ab39d8d00d41f02b8c6a68
tpl: Add now function

Add a now template function that returns the current time as time.Time.
Also, update related docs.
docs/content/templates/functions.md
tpl/template_funcs.go