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

Notice: This thread is very old.
Member | 4

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.

David Matějka
Moderator | 6427

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