hanami / view

Views, templates and presenters for Ruby web applications
http://hanamirb.org
MIT License
173 stars 80 forks source link

Improve Hanami::View inspect outputs #240

Open jodosha opened 1 year ago

jodosha commented 1 year ago

@parndt raised this:

I see this using better errors sometimes

(Object too large. Modify
Hanami::View::Rendering#inspect or adjust
BetterErrors.maximum_variable_inspect_size if you need to see it.)
jodosha commented 1 year ago

We need an assessment of all of our user-facing objects (Actions, Views, Router, etc...) to understand:

  1. How does the #inspect output look, and how can it be simplified?
  2. Are we passing too many dependencies? Can we simplify them? a. Example: instead of passing the entire configuration, try to pass only the few settings needed.