update docs for component
This commit is contained in:
parent
f564844bb9
commit
07c4e0bdd2
5 changed files with 14 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
"keywords": ["mvc", "framework"],
|
"keywords": ["mvc", "framework"],
|
||||||
"repository": "lhorie/mithril",
|
"repository": "lhorie/mithril",
|
||||||
"main": "mithril.js",
|
"main": "mithril.js",
|
||||||
"scripts": ["mithril.min.js", "mithril.min.map", "mithril.js"],
|
"scripts": ["mithril.js"],
|
||||||
"version": "0.1.17",
|
"version": "0.1.17",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
<p>And you can download Mithril by typing this:</p>
|
<p>And you can download Mithril by typing this:</p>
|
||||||
<pre><code>component install lhorie/mithril</code></pre>
|
<pre><code>component install lhorie/mithril</code></pre>
|
||||||
<p>Then, to use Mithril, point a script tag to the downloaded file:</p>
|
<p>Then, to use Mithril, point a script tag to the downloaded file:</p>
|
||||||
<pre><code class="lang-markup"><script src="/components/lhorie/mithril/master/mithril.min.js"></script></code></pre>
|
<pre><code class="lang-markup"><script src="/components/lhorie/mithril/master/mithril.js"></script></code></pre>
|
||||||
<hr>
|
<hr>
|
||||||
<h3 id="rails">Rails</h3>
|
<h3 id="rails">Rails</h3>
|
||||||
<p>Jordan Humphreys created a gem to allow integration with Rails:</p>
|
<p>Jordan Humphreys created a gem to allow integration with Rails:</p>
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -19,5 +19,15 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/lhorie/mithril.js.git"
|
"url": "https://github.com/lhorie/mithril.js.git"
|
||||||
}
|
},
|
||||||
|
"npmFileMap": [
|
||||||
|
{
|
||||||
|
"basePath": "/",
|
||||||
|
"files": [
|
||||||
|
"mithril.js",
|
||||||
|
"mithril.min.js",
|
||||||
|
"mithril.min.map"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ component install lhorie/mithril
|
||||||
Then, to use Mithril, point a script tag to the downloaded file:
|
Then, to use Mithril, point a script tag to the downloaded file:
|
||||||
|
|
||||||
```markup
|
```markup
|
||||||
<script src="/components/lhorie/mithril/master/mithril.min.js"></script>
|
<script src="/components/lhorie/mithril/master/mithril.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue