added web mode for tpl files