Search code examples
clojureread-eval-print-loopnoir

Calling noir pages from within the REPL


Is it possible to call (or is request the word?) a page defined with "defpage" complete with POST variables in the REPL?

I've created a page with (defpage [:post "/form"] [req] (common/layout ...))

And I would like to see the output of the layout call on the REPL.


Solution

  • Have a look at the noir.util.test namespace. There are some examples of its usage at the noir source code