class Tilt::EtanniTemplate

def prepare

def prepare
  separator = data.hash.abs
  chomp = "<<#{separator}.chomp!"
  start = "\n_out_ << #{chomp}\n"
  stop = "\n#{separator}\n"
  replacement = "#{stop}\\1#{start}"
  temp = data.strip
  temp.gsub!(/<\?r\s+(.*?)\s+\?>/m, replacement)
  @code = "_out_ = [<<#{separator}.chomp!]\n#{temp}#{stop}_out_.join"
end