For reusability, I want to re-use a widget inside another. For instance, the widget file blogpost.hamlet
could contain how a post is displayed, and blog.hamlet
could contain the full blog.
The following content of blog.hamlet
does not work:
$forall post <- posts
^{widgetFile "blogpost")
So, what is the correct syntax to embed one widget inside another?