Sha256: 27e222ca6882e4021409c6e366efec4b648cb30c2b58c73e7176ec27eab6e1e9

Contents?: true

Size: 901 Bytes

Versions: 18

Compression:

Stored size: 901 Bytes

Contents

Feature: Page body via `body` variable
  Scenario: Theme accesses rendered page body via `body` variable
    Given a theme with the body:
      """
      <div class="container">{{body}}</div>
      """
    When this page is rendered:
      """
      <h1>Hi mom!</h1>
      """
    Then the rendered content should be:
      """
      <div class="container"><h1>Hi mom!</h1></div>
      """

  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:
      """
      <div>{{body}}</div>
      """
    Then the rendered content should be:
      """
      <div></div>
      """

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 features/liquid/body.feature
landable-1.13.2 features/liquid/body.feature
landable-1.13.1 features/liquid/body.feature
landable-1.12.3 features/liquid/body.feature
landable-1.12.2 features/liquid/body.feature
landable-1.12.1 features/liquid/body.feature
landable-1.11.1 features/liquid/body.feature
landable-1.11.0 features/liquid/body.feature
landable-1.10.0.rc2 features/liquid/body.feature
landable-1.10.0.rc1 features/liquid/body.feature
landable-1.9.2 features/liquid/body.feature
landable-1.9.1 features/liquid/body.feature
landable-1.9.0 features/liquid/body.feature
landable-1.9.0.rc2 features/liquid/body.feature
landable-1.9.0.rc1 features/liquid/body.feature
landable-1.8.0 features/liquid/body.feature
landable-1.7.1.rc1 features/liquid/body.feature
landable-1.7.0 features/liquid/body.feature