Rendering to Objects+discussion

Card.all.inject({}) {|h,c| j=Wagn::Renderer::JsonRenderer.new(c).render[:card]; puts h[j[:attr][:key]]=j,"\n"; h}

 

That loads up a hash of all the cards in a Wagn.

 

If you do a .to_json on it, you can serialize it to a file or for web export.  All we need to do is tighten up the spec on the card attributes in json.

 

 

This works on obj_render branch.


I'm a little too bleary eyed to dive all the way in right now (rough night with the baby last night), but am stoked to see this taking shape.

  --Ethan McCutchen.....2012-11-20 22:32:47 +0000


We factored out the two Content processors and everything uses ObjectContent, for a string, we use .to_s

  --Gerry Gleason.....2013-03-02 12:20:40 +0000