update docs for component

This commit is contained in:
Leo Horie 2014-07-02 09:31:36 -04:00
parent f564844bb9
commit 07c4e0bdd2
5 changed files with 14 additions and 4 deletions

View file

@ -4,7 +4,7 @@
"keywords": ["mvc", "framework"],
"repository": "lhorie/mithril",
"main": "mithril.js",
"scripts": ["mithril.min.js", "mithril.min.map", "mithril.js"],
"scripts": ["mithril.js"],
"version": "0.1.17",
"license": "MIT"
}

View file

@ -85,7 +85,7 @@
<p>And you can download Mithril by typing this:</p>
<pre><code>component install lhorie/mithril</code></pre>
<p>Then, to use Mithril, point a script tag to the downloaded file:</p>
<pre><code class="lang-markup">&lt;script src=&quot;/components/lhorie/mithril/master/mithril.min.js&quot;&gt;&lt;/script&gt;</code></pre>
<pre><code class="lang-markup">&lt;script src=&quot;/components/lhorie/mithril/master/mithril.js&quot;&gt;&lt;/script&gt;</code></pre>
<hr>
<h3 id="rails">Rails</h3>
<p>Jordan Humphreys created a gem to allow integration with Rails:</p>

Binary file not shown.

View file

@ -19,5 +19,15 @@
"repository": {
"type": "git",
"url": "https://github.com/lhorie/mithril.js.git"
}
},
"npmFileMap": [
{
"basePath": "/",
"files": [
"mithril.js",
"mithril.min.js",
"mithril.min.map"
]
}
]
}

View file

@ -99,7 +99,7 @@ component install lhorie/mithril
Then, to use Mithril, point a script tag to the downloaded file:
```markup
<script src="/components/lhorie/mithril/master/mithril.min.js"></script>
<script src="/components/lhorie/mithril/master/mithril.js"></script>
```
---