MarkdownRecord Docs

Layouts

When MarkdownRecord renders markdown source files, it looks for three different ERB layouts that it can use as templates. These layouts are each passed the same local variables as a markdown file when rendered as ERB (as discussed in the previous section), as well as an html variable that is the rendered html produced from the markdown content.

The layouts that MarkdownRecord uses by default are added to your application at the time of install in the markdown_record/layouts directory. They are:

In addition to the above, there is also a _custom_layout.html.erb which is used for the contents of the sandbox part of this guide. This demonstrates how you can override the layout used for a specific file using the user_layout Content DSL command.

The above content was rendered from source files at: content/v_0_1/layouts