Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to determine which css file will be sent to clients
    primarykey
    data
    text
    <p>I started a simple project with <a href="http://www.meteor.com/" rel="nofollow">Meteor</a>. But now it is getting complicated. I am trying add a management panel for project. I want to separate site and its panel. But every css and js files are both sent to site and management.</p> <p>Environment: I am hosting project at meteor.com. My development machine is Windows 7. I cant use meteorite. If you are going to suggest me to use mrt add router, you are welcome. but currently i cant do it.</p> <p>Current directory structure:</p> <ul> <li>client (client.js, index.html, css files, other js files like jquery plugins)</li> <li>server (server.js)</li> <li>public (image files for UI)</li> </ul> <h2>Update</h2> <p>I have 1 index file which is:</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;/template&gt; </code></pre> <p>site template:</p> <pre><code>&lt;template name="management"&gt; &lt;h1&gt;Hello World!&lt;/h1&gt; &lt;/template&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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