Feature: Page body via `body` variable
Scenario: Theme accesses rendered page body via `body` variable
Given a theme with the body:
"""
{{body}}
"""
When this page is rendered:
"""
Hi mom!
"""
Then the rendered content should be:
"""
Hi mom!
"""
Scenario: Rendering a page that attempts to inject Liquid markup into its theme
Given a theme with the body "{{body}}"
When this page is rendered:
"""
{% raw %}{{body}}{% endraw %}
"""
Then the rendered content should be:
"""
{{body}}
"""
Scenario: Page rendering does not provide a `body` variable
When this page is rendered:
"""
{{body}}
"""
Then the rendered content should be:
"""
"""