As we continue to get closer to running Herb in production on GitHub.com, we've identified an operational risk in the library.
When turning intercept_erb, it's possible to introduce runtime exceptions if Herb/ReActionView produces invalid Ruby, such as in marcoroth/reactionview#83. If a template is not rendered in tests, the invalid Ruby will not be eval'd until the template is lazily compiled in production.
As a stopgap, I have added a script to compile and eval all of our templates in a CI job, but I would expect Herb to provide a better safety mechanism.
As we continue to get closer to running Herb in production on GitHub.com, we've identified an operational risk in the library.
When turning
intercept_erb, it's possible to introduce runtime exceptions if Herb/ReActionView produces invalid Ruby, such as in marcoroth/reactionview#83. If a template is not rendered in tests, the invalid Ruby will not beeval'd until the template is lazily compiled in production.As a stopgap, I have added a script to compile and
evalall of our templates in a CI job, but I would expect Herb to provide a better safety mechanism.