VNDB fork of mithril.js
Find a file
Pat Cavit bcb81c4b03 Use tag for npm install
And update example to correct dependency format
2016-11-10 11:05:22 -08:00
api add error message in m.mount 2016-10-27 20:28:33 -04:00
bundler write to bundle if first time 2016-10-27 10:29:08 -04:00
docs Use tag for npm install 2016-11-10 11:05:22 -08:00
examples remove redundant abstraction level in todomvc example 2016-10-28 09:51:42 -04:00
module lint 2016-09-23 22:49:20 -04:00
ospec Fix repository field 2016-11-10 11:01:02 -08:00
promise lint 2016-09-23 22:49:20 -04:00
querystring fix test 2016-10-18 18:07:01 -04:00
render Fix #1380 2016-11-04 12:30:14 -06:00
request Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-11-10 10:13:21 -05:00
router Ignore modifier+click and middle click in m.route.link 2016-10-18 13:56:10 -07:00
stream use strict 2016-11-04 12:57:18 -04:00
test-utils allow dom level 1 events to be removed #1385 2016-11-04 12:33:36 -04:00
tests fix tests 2016-10-26 20:27:20 -04:00
util fix ap 2016-10-26 18:37:48 -04:00
.deploy.enc Set up repo for travis commits (#1210) 2016-08-04 09:58:28 -07:00
.editorconfig Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
.eslintignore Add ESLint and a generated config/ignore file 2016-05-19 12:37:33 -07:00
.eslintrc.js lint 2016-09-23 22:49:20 -04:00
.gitattributes change line endings, step 1 2016-10-26 15:23:19 -04:00
.gitignore remove ambiguity in oncreate hook docs 2016-11-01 23:30:29 -04:00
.travis.yml Improve travis commit message slightly (#1218) 2016-08-04 22:38:20 -07:00
browser.js unbreak bundler 2016-08-03 00:01:17 -04:00
CONTRIBUTING.md Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
hyperscript.js improved bundler, handle width/height atts 2016-09-23 10:31:33 -04:00
index.js improved bundler, handle width/height atts 2016-09-23 10:31:33 -04:00
mithril.js Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-11-10 10:13:21 -05:00
mithril.min.js Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-11-10 10:13:21 -05:00
mount.js rename routeresolver methods to {onmatch,view} 2016-08-17 00:10:47 -04:00
package.json rc3 2016-11-10 10:12:40 -05:00
README.md Simplify npm command 2016-11-10 11:02:13 -08:00
redraw.js rename routeresolver methods to {onmatch,view} 2016-08-17 00:10:47 -04:00
render.js rename routeresolver methods to {onmatch,view} 2016-08-17 00:10:47 -04:00
request.js ensure internal streams have same constructor as public streams 2016-08-24 01:08:20 -04:00
route.js Mount-based api/router.js 2016-09-02 21:59:05 +02:00
stream.js improved bundler, handle width/height atts 2016-09-23 10:31:33 -04:00

Mithril.js - A framework for building brilliant applications

Installation | API | Examples | Migration Guide

Note: This branch is the upcoming version 1.0. It's a rewrite from the ground up and it's not backwards compatible with Mithril 0.2.x. You can find preliminary documentation here and migration guide here

This rewrite aims to fix longstanding API design issues, significantly improve performance, and clean up the codebase.

Early Preview

You can install this via NPM using this command:

npm install mithril@rewrite

Examples run out of the box. Just open the HTML files.

Status

The code is fairly stable and I'm using it in production, but there may be bugs still lurking.

Some examples of usage can be found in the examples folder. ThreadItJS has the largest API surface coverage.

Partial documentation can be found in the /docs directory

Performance

Mithril's virtual DOM engine is around 500 lines of well organized code and it implements a modern search space reduction diff algorithm and a DOM recycling mechanism, which translate to top-of-class performance. See the dbmon implementation (for comparison, here are dbmon implementations for React v15.3.2, Angular v2.0.0-beta.17 and Vue 2. All implementations are naive (i.e. apples-to-apples, no optimizations)

Robustness

There are over 4000 assertions in the test suite, and tests cover even difficult-to-test things like location.href, element.innerHTML and XMLHttpRequest usage.

Modularity

Despite the huge improvements in performance and modularity, the new codebase is smaller than v0.2.x, currently clocking at 7.2kb min+gzip

In addition, Mithril is now completely modular: you can import only the modules that you need and easily integrate 3rd party modules if you wish to use a different library for routing, ajax, and even rendering