WIP dependency injection in templates