This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-22
Channels
- # aatree (21)
- # announcements (10)
- # avi (1)
- # aws (15)
- # beginners (96)
- # boot (269)
- # braid-chat (92)
- # cider (9)
- # clara (10)
- # cljs-dev (3)
- # cljsjs (14)
- # cljsrn (20)
- # clojure (198)
- # clojure-art (3)
- # clojure-hamburg (2)
- # clojure-ireland (4)
- # clojure-russia (117)
- # clojure-spain (3)
- # clojured (1)
- # clojurescript (253)
- # code-reviews (6)
- # community-development (7)
- # conf-proposals (52)
- # core-async (4)
- # cursive (4)
- # datomic (4)
- # devcards (1)
- # emacs (59)
- # euroclojure (5)
- # funcool (1)
- # hoplon (39)
- # human (1)
- # jobs (4)
- # ldnclj (15)
- # ldnproclodo (1)
- # leiningen (3)
- # mount (37)
- # off-topic (14)
- # om (77)
- # perun (10)
- # proton (12)
- # rdf (1)
- # re-frame (9)
- # reagent (42)
- # ring-swagger (10)
- # yada (50)
if you have a directory of files called 'dir', you can serve them with (yada dir)
not sure it can be much simpler
there are various options you can give to static directory serving, see here: https://github.com/juxt/yada/blob/master/dev/src/yada/dev/talks.clj
but it may be out-of-date
documentation is coming though, I am doing quite a lot of documenting these days
the user-manual is growing
scroll down a bit
but the talks example is the most up to date and you can run it
it's how this is implemented: https://yada.juxt.pro/talks/README.md
whereby .md files are automatically run through a markdown preprocessor
but other files are statically served
using yada to serve these is far superior to bidi's ResourcesMaybe because you get all the caching and conditional request semantics, etc.
+ security and so on
Really cool stuff going on but its quite a departure from the usual compojure ring stack
until yada 1.1 is officially released, you'll have to dig into the code examples a little bit
yes, it's a big departure - partly because the compojure ring stack can't do async (see how pedestal had to depart from ring too)
but you can mix-and-match - some resources you can keep as compojure, others you might serve with bidi/yada
yes, are you doing it like this: https://yada.juxt.pro/talks/clojutre-2015.html#/slide-orgheadline40
sorry that example is a bit out of date but the point is you can return the promise that aleph client returns to you
it all just works, asynchronously
or should 😉
what kind of stream are you looking to support?
you can support any stream that can be converted to a manifold source, so it should be easy
if yada doesn't support the exact type of stream you need, extend the yada.body.MessageBody protocol with your own implementation - you can see how the core.async channel is implemented and derive it from that
but if you tell me what kind of stream you need I'm happy to put it into the next release
@jethroksy: thanks for your points about the docs, it's on my list to look into to
just a bit busy with client work today