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.
- 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
-
v4
|
v5
|
|
15 | 15 | ==== `by_month` ==== |
16 | 16 | {{{ |
17 | | #!text/javascript |
| 17 | #!javascript |
18 | 18 | function(doc) { |
19 | 19 | if (doc.type == 'Post') { |
… |
… |
|
30 | 30 | ==== `by_slug` ==== |
31 | 31 | {{{ |
32 | | #!text/javascript |
| 32 | #!javascript |
33 | 33 | function(doc) { |
34 | 34 | if (doc.type == 'Post') { |
… |
… |
|
59 | 59 | ==== `by_time` ==== |
60 | 60 | {{{ |
61 | | #!text/javascript |
| 61 | #!javascript |
62 | 62 | function(doc) { |
63 | 63 | if (doc.type == 'Post') { |
… |
… |
|
69 | 69 | } |
70 | 70 | } |
71 | | |
72 | 71 | }}} |
73 | 72 | |
| 73 | === `by_update` === |
| 74 | {{{ |
| 75 | #!javascript |
| 76 | function(doc) { |
| 77 | if (doc.type == 'Post') { |
| 78 | emit([doc.updated], null); |
| 79 | } |
| 80 | } |
| 81 | }}} |
74 | 82 | |
75 | 83 | === `_design/pings` === |