It works, thanks Malcom.
It is surprisingly easy once you understand how to wire it together.
Thanks for your help and a great library.
Clifford
On Sunday, 11 January 2015 21:27:06 UTC+2, cliff wrote:
>
> Hi
>
> I am trying to mimic the following Compojure behaviour, in juxt/bidi
>
> (defroute
Hi Clifford,
First, br/resource-maybe can only appear as the second item of a route
pair, because it only satisfies the bidi.bidi/Matched protocol. The first
item of a route pair is for patterns only, i.e. types that satisfy
bidi.bidi/Pattern protocol.
What you are trying to do is easy (when y
Would something like this be correct?
(def routes
> ["" {
>"/" {["" (br/resources-maybe {:prefix "public"})]
> :home-page-handler}}])
On Monday, 12 January 2015 08:39:19 UTC+2, cliff wrote:
>
> Hi Dan
>
> Thanks for that. I have read that section.
> My question is, how do I associate
Hi Dan
Thanks for that. I have read that section.
My question is, how do I associate the "/" route with both a handler and
the 'resources-maybe'?
I would like the resources to pick up the Google Closure library sitting in
'resources/public/js/out' when navigating to '/index.html'
On Monday,
Hi,
Take a look at https://github.com/juxt/bidi#resources-and-resourcesmaybe
Regards,
Dan
On 11 January 2015 at 19:27, cliff wrote:
> Hi
>
> I am trying to mimic the following Compojure behaviour, in juxt/bidi
>
> (defroutes routes
>> (*resources* "/")
>> (GET "/*" req (io/resource "index.
Hi
I am trying to mimic the following Compojure behaviour, in juxt/bidi
(defroutes routes
> (*resources* "/")
> (GET "/*" req (io/resource "index.html")))
>
> (def http-handler (reload/wrap-reload (api #'routes)))
In Compojure, the 'resources' function seems to load all resources by
de