soveran / cuba

Rum based microframework for web development.

Home Page:http://cuba.is

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use of partials

microspino opened this issue · comments

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 👏

Hey @microspino, thanks for the kind words :-)

Yes, that's the way to do partials.

This issue can be closed.