Sha256: c834c459de063478b38d5479716f32bce209ff93a99d562ac665d2003b63a718
Contents?: true
Size: 1.12 KB
Versions: 9
Compression:
Stored size: 1.12 KB
Contents
Feature: Including content in a template As a designer I use content from elsewhere in the repository So that it can be changed by the end user Scenario: The content item exists Given this template exists at "inclusion.nou.html" """ {{ "/includes/header" | item_at_path | assign_to: "header" }} <h1>{{ header.title }}</h1> """ And this content item exists at "/inclusion" | template | inclusion | And this content item exists at "/includes/header" | title | The site title | When I view "/inclusion" Then the headline should be "The site title" Scenario: The content item does not exist Given this template exists at "missing_content.nou.html" """ {{ "/includes/header" | item_at_path | assign_to: "header" }} {% if header %} <h1>Header Found</h1> {% else %} <h1>No Header</h1> {% endif %} """ And this content item exists at "/missing_content" | template | missing_content | And no content item exists at "/includes/header" When I view "/missing_content" Then the headline should be "No Header"
Version data entries
9 entries across 9 versions & 1 rubygems