Use of partials
microspino opened this issue · comments
Daniele Spinosa commented
I would like to extract a partial with some html from my layout.mote.
I was unable to find a easier solution than this:
layout.mote
...
{{ this.partial('mypartial') }}
...
then inside views/mypartial.mote i have some html content.
<p>This is the content of my partial.</p>
Is this the right way to do it?
BTW I like this little framework A LOT.
👏 Thx for the nice job 👏
Michel Martens commented
Hey @microspino, thanks for the kind words :-)
Yes, that's the way to do partials.
Francesco commented
This issue can be closed.