@@ -0,0 +1,6 @@
+<?php
+
+class TemplateInheritance
+{
+ // This space intentionally left blank.
+}
@@ -0,0 +1,4 @@
+{{% BLOCKS }}
+{{< parent_heading }}
+ {{$ head }}This is a heading{{/ head }}
+{{/ parent_heading }}
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>{{$ title }}This is a title{{/ title }}</title>
+</head>
+<body>
+ {{$ content }}Placeholder content{{/ content }}
+</body>
+</html>
+<h1>
+ {{$ head }}This is a parent heading{{/ head }}
+</h1>
+{{< parent }}
+{{$ content }}
+ {{> my_heading }}
+ <p>Body!</p>
+{{/ content }}
+{{/ parent }}
@@ -0,0 +1,13 @@
+ <title>This is a title</title>
+ <h1>
+ This is a heading
+ </h1>