Where did the OO go? Views Should be Objects Too!
summary
Claim: render one set of templates on server and client by splitting view into a plain-data Perspectives gem object and a mustache templates file. Prototype RailsGenius demo loads snippets without full-page reloads, serves HTML for crawlers, and sends JSON for incremental updates. Comparison names Rendr/node and Turbolinks and shows tradeoffs. Specific wins: enforces separation of view logic into testable objects, enables structured JSON transport, and produces predictable cache keys so nested fragments expire correctly. RailsGenius demo validates the approach.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:23The Holy Grail of the web
- 14:59Lowest common denominator
- 19:04Mustache - "tags"
- 21:35Perspective
- 26:43Separation of concerns
- 27:19#2: Testing
- 28:13#3: Caching








