Created
June 10, 2016 13:25
-
-
Save shackep/cd6d8095e864053495902bb400fb8c11 to your computer and use it in GitHub Desktop.
Twig Basics Example 2
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div id="content"> | |
<h1>fun</h1> | |
{% block content %} | |
<h2>YOLO</h2> | |
{% endblock %} | |
<h2>times</h2> | |
</div> | |
<div id="footer"> | |
{% block footer %} | |
Copyright {{ date|now('Y') }} by <a href="{{ site.url }}">you</a>. | |
{% endblock %} | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment