Injecting data inside of templates