move special code to template handlets
fix haml
detect erb properly
fix tests to use `=`, check for content_for double output