Skip to content
Browse files
Merge pull request #20 from BigBlueHat/explain-provides
Clarify provides() usage in _list function
  • Loading branch information
wohali committed Mar 20, 2017
2 parents 91d4405 + 6ea480d commit 98068a84f45a3270ed673d48d6ce4d604d98b165
Showing 1 changed file with 5 additions and 2 deletions.
@@ -369,8 +369,11 @@ HTML page:
Templates and styles could obviously be used to present data in a nicer fashion,
but this is an excellent starting point. Note that you may also use
:func:`registerType` and :func:`provides` functions in the same way as for
:func:`registerType` and :func:`provides` functions in a similar way as for
:ref:`showfun`! However, note that :func:`provides` expects the return value to
be a string when used inside a list function, so you'll need to use
:func:`start` to set any custom headers and stringify your JSON before
returning it.

.. seealso::
CouchDB Wiki:

0 comments on commit 98068a8

Please sign in to comment.