<commit_before> [![Travis](https://img.shields.io/travis/tomekwi/mithril-n.svg?style=flat-square)](https://travis-ci.org/tomekwi/mithril-n)
 [![Code climate](https://img.shields.io/codeclimate/github/tomekwi/mithril-n.svg?style=flat-square)](https://codeclimate.com/github/tomekwi/mithril-n)
 [![David](https://img.shields.io/david/tomekwi/mithril-n.svg?style=flat-square)](https://david-dm.org/tomekwi/mithril-n)




n()
===

**Pure DOM nodes in [Mithril][] templates.**

[Mithril]: http://lhorie.github.io/mithril/




Installation
------------

Using bower:

```sh
$ bower install mithril-n
```

Using npm:

```sh
$ npm install mithril-n
```




Usage
-----

It's really just Mithril's `m()`, which accepts DOM nodes as `children` as well as original arguments.

So this JavaScript[*](#es6-note):

```js
import m from "mithril";
import n from "mithril-n";

m.render(document.body
  , n("home"
    , document.createElement("papa")
    , n("mama", m(".son"))
    , "A happy family"
    )
  );
```

…will result in:

```html
<home>
  <papa></papa>
  <mama>
    <div class="son"></div>
  </mama>
  A happy family
</home>
```

<a id="es6-note">*</a> I'm using ES6 syntax here – brought to us today by great projects like [babel]. When you download a release of _mithril-n_, you get two versions bundled: one for ES6, one for ES5 (available as CommonJS, RequireJS and as a global variable).

If you're interested in implementation details, have a look at the [annotated source][docco].

[babel]: http://babel.org
[docco]: http://tomekwi.github.io/mithril-n/




Contributors
------------

Many thanks to this fine gentleman for his invaluable input:

- [<NAME>](https://github.com/barneycarroll)




License
-------

[MIT][] © [<NAME>][]

[![js-standard-style][standard-badge]][standard]

[MIT]: ./License.md
[<NAME>]: https://github.com/tomekwi
[standard-badge]: https://raw.githubusercontent.com/feross/standard/master/badge.png
[standard]: https://github.com/feross/standard<commit_msg>Add more air to the readme<commit_after> [![Travis](https://img.shields.io/travis/tomekwi/mithril-n.svg?style=flat-square)](https://travis-ci.org/tomekwi/mithril-n)
 [![Code climate](https://img.shields.io/codeclimate/github/tomekwi/mithril-n.svg?style=flat-square)](https://codeclimate.com/github/tomekwi/mithril-n)
 [![David](https://img.shields.io/david/tomekwi/mithril-n.svg?style=flat-square)](https://david-dm.org/tomekwi/mithril-n)




n()
===

**Pure DOM nodes in [Mithril][] templates.**

[Mithril]: http://lhorie.github.io/mithril/




Installation
------------

Using bower:

```sh
$ bower install mithril-n
```

Using npm:

```sh
$ npm install mithril-n
```




Usage
-----

It's really just Mithril's `m()`, which accepts DOM nodes as `children` as well as original arguments.

So this JavaScript[*](#es6-note):

```js
import m from "mithril";
import n from "mithril-n";

m.render(document.body
  , n("home"
    , document.createElement("papa")
    , n("mama", m(".son"))
    , "A happy family"
    )
  );
```

…will result in:

```html
<home>
  <papa></papa>
  <mama>
    <div class="son"></div>
  </mama>
  A happy family
</home>
```

<a id="es6-note">*</a> I'm using ES6 syntax here – brought to us today by great projects like [babel]. When you download a release of _mithril-n_, you get two versions bundled: one for ES6, one for ES5 (available as CommonJS, RequireJS and as a global variable).

If you're interested in implementation details, have a look at the [annotated source][docco].

[babel]: http://babel.org
[docco]: http://tomekwi.github.io/mithril-n/




Contributors
------------

Many thanks to this fine gentleman for his invaluable input:

- [<NAME>](https://github.com/barneycarroll)




License
-------

[MIT][] © [<NAME>][]

   
   
[![js-standard-style][standard-badge]][standard]

[MIT]: ./License.md
[<NAME>]: https://github.com/tomekwi
[standard-badge]: https://raw.githubusercontent.com/feross/standard/master/badge.png
[standard]: https://github.com/feross/standard
{'fraction_non_alphanumeric': 0.19383921863260706, 'fraction_numerical': 0.002504382669671926, 'mean_word_length': 3.800480769230769, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4242790', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1441, 'n_words': 332}