Moved mustache partials to separate directory.

This commit is contained in:
Markus Birth 2016-05-20 13:19:03 +02:00
parent 674ff9b397
commit 92f2408deb
8 changed files with 5 additions and 3 deletions

View File

@ -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'),
));

View File

@ -201,6 +201,7 @@
Hello, world!
</p>
{{> mdl_content_foot}}
{{> mdl_foot}}
<a href="https://github.com/google/material-design-lite/blob/master/templates/article/" target="_blank" id="view-source" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-color--accent mdl-color-text--accent-contrast">View Source</a>
{{> html_foot}}

View File

@ -9,5 +9,3 @@
</ul>
</div>
</footer>
</main>
</div>

View File

@ -1,4 +1,3 @@
<main class="frs-main mdl-layout__content">
<div class="frs-container mdl-grid">
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
<div class="frs-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">

View File

@ -0,0 +1,2 @@
</main>
</div>

View File

@ -5,3 +5,4 @@
</div>
</header>
<div class="frs-ribbon"></div>
<main class="frs-main mdl-layout__content">