Skip to content

How to generate an xml view

macourtney edited this page Sep 13, 2010 · 3 revisions

Added for version: 0.4
Updated for version: 0.7

To generate an xml view named ‘show’ on controller ‘message’ use:

lein conjure generate xml-view message show

Generate will create a file called ‘show.clj’ in the directory views/message. The view will contain a macro for generating an xml view instead of the usual html view.

Generate will also create a unit test for your view.

Clone this wiki locally