Replace jade with swig templating engine