diff --git a/index.php b/index.php index 6d79036..5f263f2 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,7 @@ require_once __DIR__ . '/vendor' . '/autoload.php'; $m = new Mustache_Engine(array( 'loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__) . '/templates'), + 'partials_loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__) . '/templates/partials'), 'charset' => 'utf-8', 'logger' => new Mustache_Logger_StreamLogger('php://stderr'), )); diff --git a/templates/index_html.mustache b/templates/index_html.mustache index 9ae20ee..c133ea7 100644 --- a/templates/index_html.mustache +++ b/templates/index_html.mustache @@ -201,6 +201,7 @@ Hello, world!

+{{> mdl_content_foot}} {{> mdl_foot}} View Source {{> html_foot}} diff --git a/templates/html_foot.mustache b/templates/partials/html_foot.mustache similarity index 100% rename from templates/html_foot.mustache rename to templates/partials/html_foot.mustache diff --git a/templates/html_head.mustache b/templates/partials/html_head.mustache similarity index 100% rename from templates/html_head.mustache rename to templates/partials/html_head.mustache diff --git a/templates/mdl_foot.mustache b/templates/partials/mdl_content_foot.mustache similarity index 95% rename from templates/mdl_foot.mustache rename to templates/partials/mdl_content_foot.mustache index 908d801..01c7101 100644 --- a/templates/mdl_foot.mustache +++ b/templates/partials/mdl_content_foot.mustache @@ -9,5 +9,3 @@ - - diff --git a/templates/mdl_content_head.mustache b/templates/partials/mdl_content_head.mustache similarity index 84% rename from templates/mdl_content_head.mustache rename to templates/partials/mdl_content_head.mustache index dcceaab..99d5caf 100644 --- a/templates/mdl_content_head.mustache +++ b/templates/partials/mdl_content_head.mustache @@ -1,4 +1,3 @@ -
diff --git a/templates/partials/mdl_foot.mustache b/templates/partials/mdl_foot.mustache new file mode 100644 index 0000000..e09d289 --- /dev/null +++ b/templates/partials/mdl_foot.mustache @@ -0,0 +1,2 @@ +
+ diff --git a/templates/mdl_head.mustache b/templates/partials/mdl_head.mustache similarity index 89% rename from templates/mdl_head.mustache rename to templates/partials/mdl_head.mustache index ee0befa..3a317d9 100644 --- a/templates/mdl_head.mustache +++ b/templates/partials/mdl_head.mustache @@ -5,3 +5,4 @@
+