fix loading of templates and styles for static renderer