Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use Erubi/Erubis only in Rails template handler #914
To avoid changing template handler globally, I added
Effects for existing apps
You may notice "test/filters_test.rb" is changed. But such change may occur only in the situation both Rails and non-Rails app rendering Haml templates exist (in other words, they will have breaking change. However, duplicating last newline may not affect a behavior on browser). Thus in pure Sinatra environment, there'll be no breaking change.
While Erubi and Erubis renders templates slightly differently for last newline, I think that's Rails' breaking change and not Haml's one.