Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Please take a look at my project at github. I have a solution for this. It might not be the best, but it is working so far.</p> <p><a href="https://github.com/hakdag/voteapp" rel="nofollow">github.com/voteapp</a></p> <pre><code>&lt;head&gt; &lt;title&gt;Index&lt;/title&gt; &lt;/head&gt; &lt;body&gt; {{&gt; root}} &lt;/body&gt; </code></pre> <p>root template is using some other templates inside. I may use 2 different index files. 1 for site and 1 for management panel.</p> <p>root template:</p> <pre><code>&lt;template name="root"&gt; {{#if adminURL}} {{&gt; adminLogin}} {{else}} {{&gt; site}} {{/if}} &lt;/template&gt; </code></pre> <p>adminLogin template:</p> <pre><code>&lt;template name="adminLogin"&gt; {{#if currentUser}} {{&gt; management}} {{else}} admin login page. &lt;div style="float: right"&gt; {{loginButtons align="right"}} &lt;/div&gt; {{/if}} &lt;/template&gt; </code></pre> <p>management template:</p> <pre><code>&lt;template name="management"&gt; &lt;div id="header" class="navbar"&gt; .... &lt;/div&gt; &lt;div id="container" class="row-fluid"&gt; .... &lt;/div&gt; &lt;link rel="stylesheet" href="/css/admin.css"&gt; &lt;/template&gt; </code></pre> <p>site template:</p> <pre><code>&lt;template name="site"&gt; &lt;h1&gt;Hello World!&lt;/h1&gt; &lt;link rel="stylesheet" href="/css/site.css"&gt; &lt;/template&gt; </code></pre> <p>This is not actually html from my project but it is something like this. With this way, CSS links will appear at the end of body tag. And for admin panel and site itself will have different html structure and css files. Also you may want to add javasctipt files also.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload