Matt Hinchliffe edited this page Sep 26, 2013 · 4 revisions

Layouts are re-usable templates to receive compiled pages and will usually be formed of a document outline and partials. Layouts will inherit the current page data set and the compiled page.

The templating documentation contains more information about template syntax.

Note that the compiled page data must be output with unescaped HTML using a triple mustache: {{{content}}}.



layout: default
title: Home
	Welcome to {{}}!


<!doctype html>
	<title>{{page.title}} | {{}}</title>
	<div class="wrap">
		{{> header}}
		<div class="content">
		{{> footer}}

Using Robot: Previous: Partials, Next: Pages