]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adding strftime plugin to the docs #154
authorTim Wood <washwithcare@gmail.com>
Fri, 3 Feb 2012 18:35:38 +0000 (10:35 -0800)
committerTim Wood <washwithcare@gmail.com>
Fri, 3 Feb 2012 18:35:38 +0000 (10:35 -0800)
sitesrc/docs.jade

index 4d716aef0204632f04869a1f2a17832a7dafacf9..c4ae6801336549fdc37f232c7aeb189cc2710b5f 100644 (file)
@@ -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