Nested templates working