From f15f55a508e79928326e006a8fdb7d119cc9b9f5 Mon Sep 17 00:00:00 2001 From: Michael Nitschinger Date: Fri, 7 Feb 2014 08:48:05 +0100 Subject: [PATCH] More tweaks. --- index.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 810e700d..0c362b44 100644 --- a/index.html +++ b/index.html @@ -145,7 +145,8 @@ public class MyService { Note that to back the custom finders, you need to set up two Views on the server: For `findByLastname`: -```javascript + +``` function (doc, meta) { if(doc._class == "com.example.entity.User" && doc.firstname) { emit(doc.firstname, null); @@ -154,7 +155,8 @@ function (doc, meta) { ``` For `findAll` and `count` (also add a reduce `_count`): -```javascript + +``` function (doc, meta) { if(doc._class == "com.example.entity.User") { emit(null, null); @@ -164,9 +166,5 @@ function (doc, meta) { {% endcapture %} -{% capture related_resources %} -{% endcapture %} - - {% include project_page.html %}