What about providing a your-app.core/start-application which takes a edn-string as a parameter, then adding a <script> somewhere in the dom which calls it?
Another possibility is the <body onload="your-app.core/start(...)">, but I'm pretty sure there are some length limits involved. On Sat, Feb 22, 2014 at 11:53 PM, Boris Kourtoukov <[email protected]> wrote: > I have a setup that 'posts' for some EDN data on the server in order to > update an OM component. > > That works fine, but I want to avoid an extra 'post' on the initial page load > and rather dump the starting state with the primary browser request (i.e. > just output the EDN string somewhere on the page) and read it in with > clojurescript before OM is hooked on-to the atom (in setup, set atom, init > om). > > Thanks! > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
