Module: Spinel
- Defined in:
- lib/fresco/runtime/runtime.rb
Overview
Extension → Content-Type for the handful of types static-file routes are likely to serve in MVP. Everything else falls back to application/octet-stream so browsers download rather than guess. View-helper namespace targeted by Herb-compiled templates. Templates emit ‘::Spinel::View.h((expr))` for escaped interpolations and the attr/js/css variants for attribute/script/style contexts. The escape tables are open-coded as gsub chains — Spinel doesn’t support the ‘gsub(/regex/, hash)` form Herb’s own helpers use, but ‘gsub(string, string)` lowers fine.