im trying to achieve the following with docpad:
layout example:
default.html.eco
<div class='main'>
<%= @content %>
</div>
<div class='sidebar'>
<%= @sidebar %>
</div>
and then feed @content and @sidebar from each document file, for example
---
layout: 'default'
title: 'This is the page title'
---
This is the main content. I can use **markdown** formatting.
--- sidebar:
This is the sidebar content. Again I can use **markdown** formatting.
Is this currently supported?
Whats the best way of achieving this so that a single document file can be used to create blocks of content?
One way would be to include the sidebar content as a metatag. Downside of this seems to be that it does not apply the marked rendering. Also it becomes cluttered when your meta tag includes lots of content.
Any suggestions?