Calling noir pages from within the REPL
-
19-06-2021 - |
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.
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