I tried some stuff too and didn't worked, since the template is always rendered through ERB. One alternative would be try to write the ERB pieces with `<%%`