Coming from the Rails world as I do, I'd invert that:

handlers/page01.cljs
subscriptions/page01.cljs
views/page01.cljs

etc. 

Jamie

On Mar 26, 2015, at 3:32 AM, Colin Yates <colin.ya...@gmail.com> wrote:

> How would you structure this for an SPA with multiple top-level
> 'pages'? I am thinking:
> 
> - common (the usual bootstrapping crud)
> - page1/[handlers,subs,views etc.]
> - page2/[handlers,subs,views etc.]
> ...
> 
> The central db would be in common/state.clj which each page, during
> 'bootstrap' would update with a default state and schema.
> 
> Thoughts?
> 
> 
> 
> 
> 
> On 26 March 2015 at 01:52, Mike Thompson <m.l.thompson...@gmail.com> wrote:
>> On Thursday, March 26, 2015 at 1:07:56 AM UTC+11, Colin Yates wrote:
>>> Hi all,
>>> 
>>> What is the recommended approach? Cloning the example project, the 
>>> re-frame-template (which is still using re-frame 0.1.8) or sticking it 
>>> together by hand?
>>> 
>>> Thanks!
>> 
>> 
>> We do have the mandatory lein template in the wings.  Will be released very 
>> shortly, I hope.
>> 
>> In the meantime, look at the structure of the todomvc example.
>> https://github.com/Day8/re-frame/tree/master/examples/todomvc
>> 
>> 
>> --
>> Mike
>> 
>> --
>> 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 clojurescript+unsubscr...@googlegroups.com.
>> To post to this group, send email to clojurescript@googlegroups.com.
>> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> 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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to