Skip to content

Instantly share code, notes, and snippets.

--- a/app-template/_attachments/index.html
+++ b/app-template/_attachments/index.html
@@ -16,7 +16,7 @@
var dbname = document.location.href.split('/')[3];
var design = unescape(document.location.href).split('/')[5];
var DB = $.couch.db(dbname);
- DB.view(design+"/example",{success: function(json) {
+ DB.view(design+"/example",{group: true, success: function(json) {
$("#view").html(json.rows.map(function(row) {
return '<li>'+row.key+'</li>';