From: Tim Wood Date: Fri, 3 Feb 2012 18:35:38 +0000 (-0800) Subject: Adding strftime plugin to the docs #154 X-Git-Tag: 1.4.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d872c821f338fa048be847104e4045adf3d50d4;p=thirdparty%2Fmoment.git Adding strftime plugin to the docs #154 --- diff --git a/sitesrc/docs.jade b/sitesrc/docs.jade index 4d716aef0..c4ae68013 100644 --- a/sitesrc/docs.jade +++ b/sitesrc/docs.jade @@ -149,6 +149,12 @@ block content a(href="#/custom/calendar") Calendar li a(href="#/custom/ordinal") Ordinal + h2 + a(href="#/plugins") + span Plugins + ul + li + a(href="#/plugins/strftime") strftime #docs h1 Moment.js Documentation p A lightweight javascript date library for parsing, manipulating, and formatting dates. @@ -759,6 +765,13 @@ block content a(href="http://jsperf.com/momentjs-vs-xaprb") moment.js vs xaprb | performance tests, and here is the a(href="http://www.xaprb.com/blog/2005/12/12/javascript-closures-for-runtime-efficiency/") article describing his methods. + p If you are more comfortable working with strftime instead of LDML-like parsing tokens, you can use Ben Oakes' plugin + code moment-strftime + | . + p It is available on npm. + pre npm install moment-strftime + p The repository is located at + a(href="https://github.com/benjaminoakes/moment-strftime") benjaminoakes/moment-strftime a(name="/display/from") @@ -1299,4 +1312,24 @@ block content | }; p For more information on ordinal numbers, see a(href="http://en.wikipedia.org/wiki/Ordinal_number_%28linguistics%29") wikipedia + + + a(name="/plugins") + h2 + span Plugins + p Some people have made plugins for moment.js that may be useful to you. + + + a(name="/plugins/strftime") + h3 + span strftime + p If you are more comfortable working with strftime instead of LDML-like parsing tokens, you can use Ben Oakes' plugin + code moment-strftime + | . + p It is available on npm. + pre npm install moment-strftime + p The repository is located at + a(href="https://github.com/benjaminoakes/moment-strftime") benjaminoakes/moment-strftime + + .footer \ No newline at end of file