-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When view is already a valid HTML page, just displayed it
- Loading branch information
1 parent
8a774db
commit 3f82b24
Showing
6 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{# @var view \IQ2i\StoriaBundle\View\Dto\View #} | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>UI Storia</title> | ||
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('/bundles/iq2istoria/apple-touch-icon.png') }}"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('/bundles/iq2istoria/favicon-32x32.png') }}"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('/bundles/iq2istoria/favicon-16x16.png') }}"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
{% block stylesheets %}{% endblock %} | ||
{% block javascripts %}{% endblock %} | ||
</head> | ||
|
||
<body> | ||
{% block body %} | ||
{{ view.currentVariant.htmlContent|raw }} | ||
{% endblock %} | ||
{% block body %}{{ content|raw }}{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
tests/TestApplication/storia/pages/homepage/homepage.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
This is a homepage template | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block body %} | ||
{% block hero %} | ||
<p>This is the homepage hero</p> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<p>This is the main content of the page</p> | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block body %} | ||
{% block hero %} | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla viverra dignissim mi, eget egestas mi tincidunt vitae. Nunc nulla neque, sodales at rhoncus eget, pulvinar quis orci. Nulla facilisi.</p> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla viverra dignissim mi, eget egestas mi tincidunt vitae. Nunc nulla neque, sodales at rhoncus eget, pulvinar quis orci. Nulla facilisi. Nam vel orci nec augue scelerisque lacinia. Phasellus pellentesque leo nulla. Ut neque urna, ultricies eu tincidunt at, mollis sagittis dui. Suspendisse ac diam sed lectus mollis dapibus. Donec dui ipsum, scelerisque at rutrum ac, molestie sed ex. Praesent congue laoreet justo at porttitor. Vestibulum non rutrum tortor, ut laoreet libero. Vivamus ut neque at odio finibus venenatis.</p> | ||
{% endblock %} | ||
{% endblock %} |