Occurence of block macro causes the template to extend from @layout

3 years ago

urug
Member | 4
+
0
-

When I use a {block} macro in the template presenters/templates/Admin/default.latte, it causes the template to automatically extend the presenters/templates/@layout.latte even though {layout} or {extend} macros are not present. When I remove all {block} macros, then the template does not extend the layout and is used as is.

Is this intended behavior or a possible bug?

I am using nette 2.3.8

I just found out that occurence of {define} macro does the same.

3 years ago

David Matějka
Moderator | 5701
+
+2
-

Yes, this is expected behavior. You can disable layout using {layout none}