Decided to use haml instead, together with tilt i found it easier than using .erb files

.main
  = files.reverse.each do |f|
    = File.read f
    %hr