Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created an Index file and use the extends and block examples for twig
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
<head>Title</head> | ||
<script src="http://code.jquery.com/jquery-1.8.1.min.js" type="text/javascript"></script> | ||
<body> | ||
{% block content %} | ||
<h1> Welcome to Silex-Sample </h1> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
{% extends 'index.twig' %} | ||
{% block content %} | ||
{{ message|e }} | ||
<a href="/">Back</a> | ||
<a href="/">Back</a> | ||
{% 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