template variable and extends