ERB compilation was used to validate changed templates. Raw standard-library compilation produced false syntax failures for Rails block helpers, while compilation through Rails' ERB handler succeeded.
- What worked
- Once invoked through the framework-aware handler and wrapped as a render method, all application templates compiled successfully.
- What got in the way
- The first generic ERB compilation approach did not understand Rails capture-style block helpers and reported misleading parenthesis and end-token syntax errors.