Clojure and Python Flask

2021-01-09 Thread Pascal Dutilleul


Does somebody has experience serving ClojureScript (Re-Frame) through 
Python Flask? Or even better integrating a Clojure app within an existing 
Flask app ? I need to add a new module to an existing Flask app and I’d 
like at least the frontend to be ClojureScript. What are the possibilities?

Kind regards,
Pascal

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/d618b403-7dff-4ddf-a5fe-a7176ac60138n%40googlegroups.com.


Re: Clojure and Python Flask

2021-01-09 Thread alexandr...@gmail.com
This shouldn't be a problem - you can send all Flask responses as JSON and 
it will work fine in CLJS.

>From Flask, have a look 
at 
https://stackoverflow.com/questions/13081532/return-json-response-from-flask-view

In Clojurescript, use for instance https://github.com/r0man/cljs-http to 
read the JSON responses.

So something like this in your cljs:

(defn http-get-dispatch [request]
(go (let [response ( Does somebody has experience serving ClojureScript (Re-Frame) through 
> Python Flask? Or even better integrating a Clojure app within an existing 
> Flask app ? I need to add a new module to an existing Flask app and I’d 
> like at least the frontend to be ClojureScript. What are the possibilities?
>
> Kind regards,
> Pascal
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/39b614b7-e2be-4585-84c3-e9b620699817n%40googlegroups.com.