Skip to content

Instantly share code, notes, and snippets.

@aaronshaf
Created November 16, 2011 07:03
Show Gist options
  • Save aaronshaf/1369484 to your computer and use it in GitHub Desktop.
Save aaronshaf/1369484 to your computer and use it in GitHub Desktop.
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