add docs about component
This commit is contained in:
parent
751cc683dd
commit
85a2259964
7 changed files with 47 additions and 4 deletions
|
|
@ -61,6 +61,11 @@
|
|||
<div class="col(9,9,12)">
|
||||
<h2 id="change-log">Change Log</h2>
|
||||
<p><a href="/mithril/archive/v0.1.3">v0.1.3</a> - maintenance</p>
|
||||
<h3 id="news-">News:</h3>
|
||||
<ul>
|
||||
<li>Mithril is now available via <a href="http://component.io">Component</a></li>
|
||||
<li>There's now an extra low-level optimization hook called a SubtreeDirective, which allows implementing plugins that only create virtual trees if necessary.</li>
|
||||
</ul>
|
||||
<h3 id="bug-fixes-">Bug Fixes:</h3>
|
||||
<ul>
|
||||
<li>diff no longer touch the DOM when processing <code>style</code> attributes and event handlers</li>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "mithril",
|
||||
"description": "A Javascript framework for building brilliant applications",
|
||||
"keywords": ["mvc", "framework"],
|
||||
"repo": "lhorie/mithril",
|
||||
"repository": "lhorie/mithril",
|
||||
"main": "mithril.min.js",
|
||||
"scripts": ["mithril.min.js"],
|
||||
"version": "0.1.3",
|
||||
|
|
|
|||
|
|
@ -68,13 +68,22 @@
|
|||
<pre><code class="lang-markup"><script src="/node_modules/mithril/mithril.min.js"></script></code></pre>
|
||||
<hr>
|
||||
<h3 id="bower">Bower</h3>
|
||||
<p><a href="http://http://bower.io">Bower</a> is a package manager for <a href="http://nodejs.org/">NodeJS</a>. If you're using NodeJS already or planning on using <a href="http://gruntjs.com/">Grunt</a> to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions.</p>
|
||||
<p><a href="http://bower.io">Bower</a> is a package manager for <a href="http://nodejs.org/">NodeJS</a>. If you're using NodeJS already or planning on using <a href="http://gruntjs.com/">Grunt</a> to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions.</p>
|
||||
<p>Assuming you have NodeJS installed, you can install Bower by typing this in the command line:</p>
|
||||
<pre><code>npm install -g bower</code></pre>
|
||||
<p>And you can download Mithril by typing this:</p>
|
||||
<pre><code>bower install mithril</code></pre>
|
||||
<p>Then, to use Mithril, point a script tag to the downloaded file:</p>
|
||||
<pre><code class="lang-markup"><script src="/bower_components/mithril/mithril.min.js"></script></code></pre>
|
||||
<hr>
|
||||
<h3 id="component">Component</h3>
|
||||
<p><a href="http://component.io">Component</a> is another package manager for <a href="http://nodejs.org/">NodeJS</a>. If you're using NodeJS already or planning on using <a href="http://gruntjs.com/">Grunt</a> to create a build system, you can use Component to conveniently keep up-to-date with Mithril versions.</p>
|
||||
<p>Assuming you have NodeJS installed, you can install Bower by typing this in the command line:</p>
|
||||
<pre><code>npm install -g component</code></pre>
|
||||
<p>And you can download Mithril by typing this:</p>
|
||||
<pre><code>component install lhorie/mithril@gh-pages</code></pre>
|
||||
<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>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue