- Jan Tvrdík
- Nette guru | 2550
I don't think there is any reason to have @ character in layout template file name
Yes, there is. You can have a special
@layout.latte for a
specific presenter (
app/templates/Signemail@example.com). Removing the
@ would allow the template to be misused for action
- Honza Marek
- Member | 1674
Other templates can be misused for actions too. I sometimes create partial templates right next to the action templates – menu.latte, someItemBox.latte, … I know I have to be careful with this. Maybe I should start partial template names with ugly @ sign too.
Ideal solution for me would be obligatory action/render methods for actions in presenters. Unfortunately it would break backward compatibility a lot.