Created
November 16, 2011 07:03
-
-
Save aaronshaf/1369484 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
default.twig: | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html lang="en"> | |
<head> | |
<title>{{ this.title }}</title> | |
<link href="styles/default.css" rel="stylesheet" media="screen, projection" type$ | |
</head> | |
<body> | |
<h1>{{ this.title }}</h1> | |
{{ content }} | |
</body> | |
</html> | |
index.twig: | |
layout: default.twig | |
title: Test Title | |
--- | |
This is a test | |
Rendered index.html: | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<link href="styles/default.css" rel="stylesheet" media="screen, projection" type$ | |
</head> | |
<body> | |
<h1></h1> | |
This is a test | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment