Closed buzzeins closed 5 years ago
Hi, how to share a viiew helper in different view-partials properly? For instance:
@{helper article(item)} <li>...</li> @{end}
list.html
Each partial is gonna use the same helper. How to, without to replicate the inline helper?
thx
Hi, you need to create helper in another way https://docs.totaljs.com/latest/en.html#api~global~DEF.helpers ... another way isn't possible.
even better, thx :D
Hi, how to share a viiew helper in different view-partials properly? For instance:
Helper:
Views/Partials:
list.html
Each partial is gonna use the same helper. How to, without to replicate the inline helper?
thx