Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Should JamJS load CSS?

Received: by 10.236.157.103 with SMTP id n67mr419160yhk.41.1348669926008;
        Wed, 26 Sep 2012 07:32:06 -0700 (PDT)
X-BeenThere: jamjs@googlegroups.com
Received: by 10.236.149.34 with SMTP id w22ls2510666yhj.8.gmail; Wed, 26 Sep
 2012 07:32:05 -0700 (PDT)
Received: by 10.68.232.230 with SMTP id tr6mr330560pbc.16.1348669925069;
        Wed, 26 Sep 2012 07:32:05 -0700 (PDT)
Date: Wed, 26 Sep 2012 07:32:04 -0700 (PDT)
From: Rob Loach <roblo...@gmail.com>
To: jamjs@googlegroups.com
Message-Id: <70aa8ce3-6f8b-452f-9018-e3d1fedc1139@googlegroups.com>
Subject: Should JamJS load CSS?
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1116_19156550.1348669924711"

------=_Part_1116_19156550.1348669924711
Content-Type: multipart/alternative; 
	boundary="----=_Part_1117_9365949.1348669924711"

------=_Part_1117_9365949.1348669924711
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

JamJS and RequireJS are fantastic as script loaders to handle JavaScript. 
It might be nice if JamJS also told RequireJS to load the library's 
associated CSS files?
http://requirejs.org/docs/faq-advanced.html#css

{
  "name": "myproject",
  "version": "0.0.1",
  "description": "An example Node.js project",
  "dependencies": {
    // NPM dependencies go here...
    "async": "0.1.22"
  },
  "jam": {
    "dependencies": {
      // Jam dependencies go here...
      "jquery": "1.7.1",
      "underscore": null
    },
    "css": [
      "example.css",
      "myothercssfile.css"
    ],
    "main": "example.js"
  }
}



------=_Part_1117_9365949.1348669924711
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

JamJS and RequireJS are fantastic as script loaders to handle JavaScript. It might be nice if JamJS also told RequireJS to load the library's associated CSS files?<br>http://requirejs.org/docs/faq-advanced.html#css<br><br><pre><span style="font-family: courier new,monospace;"><code class="javascript">{
  <span class="string">"name"</span>: <span class="string">"myproject"</span>,
  <span class="string">"version"</span>: <span class="string">"0.0.1"</span>,
  <span class="string">"description"</span>: <span class="string">"An example Node.js project"</span>,
  <span class="string">"dependencies"</span>: {
    <span class="comment">// NPM dependencies go here...</span>
    <span class="string">"async"</span>: <span class="string">"0.1.22"</span>
  },
  <span class="string">"jam"</span>: {
    <span class="string">"dependencies"</span>: {
      <span class="comment">// Jam dependencies go here...</span>
      <span class="string">"jquery"</span>: <span class="string">"1.7.1"</span>,
      <span class="string">"underscore"</span>: <span class="literal">null</span>
    },<br>    "css": [<br>      "example.css",<br>      "myothercssfile.css"<br>    ],</code></span><span style="font-family: courier new,monospace;"><code class="javascript"><code class="javascript">
    <span class="string">"main"</span>: <span class="string">"example.js"</span></code><br>&nbsp; }
}</code></span></pre><br>
------=_Part_1117_9365949.1348669924711--

------=_Part_1116_19156550.1348669924711--