doc/entity in mattknox-goaloc-0.4.5 vs doc/entity in mattknox-goaloc-0.4.7

- old
+ new

@@ -76,6 +76,50 @@ how do I define a blog such that it only has the create method on comments routed, and not the others? how hard is it to serve it directly? (need to add rack handler) do I need to add the ability to do continuation-based apps? how soon should I make this able to serve itself? -It'd be nice to rename something and have that rename propagate to all the places it might be needed. +It'd be nice to rename something and have that rename propagate to all the places it might be needed. + + + + +Web App golf: + +CoC is a great idea. What is the minimum that I could possibly write to get the following apps: + +hello-world(something that generates a page that says 'hello world') +unauth'd blog(just 2 models, standard REST actions) +auth'd blog(users, posts, comments) + +I think the hello-world one is: +defresp "/" "hello" + +(defresp / "hello") + + +the blog one is: +route [:posts, :comments] +add_attrs { :posts => "body:text title:string", :comments => "body:text" } + +(route ('posts 'comments)) +(add_attrs { 'posts => "body:text title:string", 'comments => "body:text" }) + +the auth'd blog is +route [authenticated_user(:route => true), [:posts, comments]] +add_attrs { 'posts => "body:text title:string", 'comments => "body:text" } + +(route ((authenticated_user {'route => t}) ('posts 'comments))) +(add_attrs { 'posts => "body:text title:string", 'comments => "body:text" }) + + +There should be a console in which one can start a repl, with a live server attached, so one can flip back and forth effortlessly. + + +need a code generation framework. It must be capable of the following: +-copy file or dir from one place to another +-render an ERB file with some vars set and put that someplace +-delete a file +-stick stuff into a file + +all of these should check to see if the file already exists and is ask before throwing any content away +(putting new things in a file without asking is ok) \ No newline at end of file