close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of Divan


Ignore:
Timestamp:
Jul 30, 2008, 9:58:04 PM (16 years ago)
Author:
cmlenz
Comment:

Add posts/by_update view definition

Legend:

Unmodified
Added
Removed
Modified
  • Divan

    v4 v5  
    1515==== `by_month` ====
    1616{{{
    17 #!text/javascript
     17#!javascript
    1818function(doc) {
    1919  if (doc.type == 'Post') {
     
    3030==== `by_slug` ====
    3131{{{
    32 #!text/javascript
     32#!javascript
    3333function(doc) {
    3434  if (doc.type == 'Post') {
     
    5959==== `by_time` ====
    6060{{{
    61 #!text/javascript
     61#!javascript
    6262function(doc) {
    6363  if (doc.type == 'Post') {
     
    6969  }
    7070}
    71 
    7271}}}
    7372
     73=== `by_update` ===
     74{{{
     75#!javascript
     76function(doc) {
     77  if (doc.type == 'Post') {
     78    emit([doc.updated], null);
     79  }
     80}
     81}}}
    7482
    7583=== `_design/pings` ===