Inject scripts, stylesheets and more into templates and htmls, with support for namespaces