If I pass the variable "layout" as context I can use: {{extend layout}} but i can't: {{layout = 'file.tpl'}} {{extend layout}} It says that layout is not defined