Created
June 10, 2011 18:20
-
-
Save siygle/1019412 to your computer and use it in GitHub Desktop.
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
<!-- layout.html.twig --> | |
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<link rel="stylesheet" href="style.css" /> | |
<title>Welcome to Twig</title> | |
</head> | |
<body> | |
<div id="content">{% block content %}{% endblock %}</div> | |
</body> | |
</html> | |
<!-- index.html.twig --> | |
{% extends 'layout.html.twig' %} | |
{% block content %} | |
<h2>Hello {{ name }}!</h2> | |
<p>Rock!! {{ project }}</p> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment