Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 789 Bytes

markup-tag-page.md

File metadata and controls

41 lines (33 loc) · 789 Bytes

{% page %}

The {% page %} tag renders the contents of a page into a layout template.

See layouts for a basic example.

The {% page %} tag parses the raw markup from a page template. A page template may inject content both into placeholder(s) as well as define raw markup.

description="example layout"
==
<html>
    <head>
        {% placeholder head %}
    </head>
    <body>
        {% page %}
        ...
description="example page"
==
{% put head %}
    <meta name="foo" content="bar">
{% endput %}

<p>My content.</p>

The page rendered with the template would result in:

<html>
    <head>
        <meta name="foo" content="bar">
    </head>
    <body>
        <p>My content.</p>
        ...