Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top