Returning dependencies when compiling templates.