-<?php
+<?php # For new template API
# 2006 Public Domain
#
-# This file was placed into the public domain on November 16th, 2008 by it's
+# This file was placed into the public domain on November 16th, 2008 by its
# sole author Jason Woofenden
# This file facilitates making a site with mixed PHP and html files. All URLs
if(file_exists("template.html")) {
$template = parse_template_file("template.html");
if($html_exists) {
- $subs = parse_template_file($html_file);
- $template = merge_templates($template, $subs);
+ $page_template = parse_template_file($html_file);
+ $template = merge_templates($template, $page_template);
}
} elseif($html_exists) {
$template = parse_template_file("$html_file");