can I use a block inside an html tag?
- m.brecher
- Generous Backer | 888
@ando
Block inside html attribute isnt good way how dynamically add html attributes. The simplest way is use variable:
$this->template->myAttribute = 'data-my-attribute';
<div {$myAttribute}>
In latte is also something like n:attr, but direct rendering variable makes the code cleaner and more modern.