Tenjinを使う

実行

response.content_type = 'text/html'

local vars = {
  foo = 'HOGE',
  bar = 'FUGA'
}

response.render([[
<html>
  <body>
    #{@foo}<br>
    <b>#{@bar}</b>
  </body>
</html>
]], vars)