envato-archive / guide

Document your application with a living component library and styleguide
https://rubygems.org/gems/guide
MIT License
8 stars 3 forks source link

Let there be a single view model per document for image paths and such #32

Closed lukearndt closed 8 years ago

lukearndt commented 8 years ago

I've put the view_model method on Node just so that if we call Guide::NodeView#view_model, it won't explode in a big mess if it's not a Guide::Document. I don't see a need for view models on non-documents at this stage but better safe than sorry!

ppj commented 8 years ago

:+1: