soveran / cuba

Rum based microframework for web development.
http://cuba.is
MIT License
1.44k stars 248 forks source link

Use of partials #54

Closed microspino closed 9 years ago

microspino commented 9 years ago

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. :clap: Thx for the nice job :clap:

soveran commented 9 years ago

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

Yes, that's the way to do partials.

frodsan commented 9 years ago

This issue can be closed.