2010-07-31 07:11:44 +00:00
|
|
|
Feature: Engine
|
2010-08-16 22:07:54 +00:00
|
|
|
As a designer
|
|
|
|
I want to be able to build simple page html layouts
|
|
|
|
that render correctly to the client
|
2010-07-31 07:11:44 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Background:
|
|
|
|
Given I have the site: "test site" set up
|
|
|
|
|
2010-08-16 21:26:15 +00:00
|
|
|
Scenario: Simple Page
|
|
|
|
Given a page named "hello-world" with the template:
|
|
|
|
"""
|
|
|
|
Hello World
|
|
|
|
"""
|
|
|
|
When I view the rendered page at "/hello-world"
|
|
|
|
Then the rendered output should look like:
|
|
|
|
"""
|
|
|
|
Hello World
|
|
|
|
"""
|
2010-07-31 07:11:44 +00:00
|
|
|
|
2010-08-08 11:30:27 +00:00
|
|
|
# @wip
|
|
|
|
# Scenario: Simple Page with Admin Inline Editing
|
|
|
|
# Given a simple page named "hello-world-inline" with the body:
|
|
|
|
# """
|
|
|
|
# {% block hello %}Hello World{% endblock %}
|
|
|
|
# """
|
|
|
|
# When And I'm an admin
|
|
|
|
# And I view the rendered page at "/hello-world-inline"
|
|
|
|
# Then the rendered output shoud look like:
|
|
|
|
# """
|
|
|
|
# <div class="inline-editing" data-url="/admin/parts/XXXX" data-title="hello">Hello World</div>
|
|
|
|
# """
|
2010-08-28 00:00:05 +00:00
|
|
|
#
|
2010-08-08 11:30:27 +00:00
|
|
|
# {% block main %}Didier{% endblock %}
|
2010-08-28 00:00:05 +00:00
|
|
|
#
|
|
|
|
# {% block body %}{% block main %}{{ block.super }}Jacques{% endblock %}{% endblock %}
|
|
|
|
# {% block body %}Hello mister Jacques{% endblock %}
|