Single page app with templates