extract view templates into html files

use require.js text plugin to load templates