Improve API compatibility with ERB templates #156

Merged
merged 1 commit into from Aug 5, 2012

Projects

None yet

2 participants

@ssimeonov

The current API for Tilt::ERBTemplate makes it impossible to disable trim mode in ERB::Compiler. Disabling trim mode is important in cases where ERB is used to generate something other than HTML.

Adding an explicit trim: false option to Tilt::ERBTemplate improves API compatibility with ERB while maintaining backward compatibility.

@rtomayko
Owner

Seems sane. Merging.

@rtomayko rtomayko merged commit 91957e3 into rtomayko:master Aug 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment