You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but I'm not sure how to get it to work. The navigation.moustache should be a reusable HTML but I only want to display one at the time. This is an example html I would like:
<div id="top">
<div class="navigation">
MAIN NAVIGATION
</div>
</div>
<div id="content">
<div>
<div class="navigation">
LEFT NAVIGATION
</div>
</div>
</div>
The text was updated successfully, but these errors were encountered:
I've started implementing Moustache in a sample project to see if it would help me with flexibility when it comes to templates.
I have a file called
top.php
that has the following:Navigation in PHP is an array as there can be multiple navigations, it would look like this:
How can I make it configurable to only render "main" or "left"? I tried the following:
And then I have the navigation partial:
but I'm not sure how to get it to work. The
navigation.moustache
should be a reusable HTML but I only want to display one at the time. This is an example html I would like:The text was updated successfully, but these errors were encountered: