Has anyone here had a chance to use Silk for a project they'd be willing to share? I'm a front-end web-dev newbie who has been researching server-side Om/React rendering, and it seems like Silk is ideal for this use case. However I'd be much more comfortable starting out if there were some examples to go by.
On Tuesday, August 5, 2014 10:04:07 AM UTC+7, Dom Kiva-Meyer wrote: > I have recently been experimenting with isomorphic Clojure and ClojureScript > architecture. The goal is to make Clojure[Script] web applications that can > share logic for routing, rendering, and other functionality in order to be > able run in both server-side and browser-side environments. > > > > > I couldn't find a suitable routing library that worked in both Clojure and > ClojureScript nor could I find a routing library with a design that was > suitable for porting to the other platform, so I wrote one. > > > > https://github.com/DomKM/silk > > > > > > The core functionality of Silk is entirely compatible with both Clojure and > ClojureScript. > > > Silk is easily extensible, which is especially important for an isomorphic > library. For example, you may have routes that, on the server, should only > match GET requests, but which should also work in the browser where you are > not routing from an HTTP request. This functionality is trivial to add to > Silk (and, as a convenience, is built in). > > > > > > In Silk, route matching and handling are decoupled. While this is an > important architecture concern anywhere, it is an essential feature for > isomorphism. Matching URLs on the server and browser will be very similar, > but what you do after will likely be entirely different. You can think of > routing in Silk as bidirectional (yes, routes are named) pure functions that > match URLs to extract parameters or take parameters to form URLs. > > > > > > > > If this sounds like it could be useful for you, please give it a try and let > me know what you think. > > > Thanks! -- 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. For more options, visit https://groups.google.com/d/optout.