~/talk

Render It! A Deep Dive into ActionView and Template Engines

Talkat Rails Pacific 2014 · 2014-09-26..09-27· [ruby-on-rails, developer-experience]
slides:none on file

Attempts to use action_view outside Rails fail: skip action view option means nothing because action_pack, sprockets and mime types still load it at runtime; rendering text and inline ERB works but file templates require copying action_dispatch/mime_type.rb and configuring a lookup context. Template handlers compile to methods, not eval. Benchmarks compare ERB, Haml and Slim and show Haml is slow — ~10–20% speedup from my Haml fork (local branch); demos and small CLI renderer mostly work after those patches.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29What is Action View
  3. 4:02Action View without Rails
  4. 9:54Action View in Rails
  5. 10:16Action View with Sinatra
  6. 17:42Action View depends on Action Pack
  7. 19:15Rendering templates
  8. 21:59Action View rendering process
  9. 31:33Template engine handlers
  10. 33:43ERB vs Erubi
  11. 35:28Haml template engine
  12. 36:55Slim template engine
  13. 37:38Benchmarking template engines
  14. 41:41Conclusion and future improvements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.