Added support for dynamic calling of HTML templates at run-time