mithril-vndb/archive/v0.2.2-rc.1
Cody Phillips 46b18caec6 fix for issue #915
Added undefined check at line 76 to prevent an uncaught type error which was occurring when the class attribute was encountered.
2016-01-17 19:31:17 -05:00
..
comparisons build 2015-12-20 09:27:31 -05:00
lib/prism build 2015-12-20 09:27:31 -05:00
tools fix for issue #915 2016-01-17 19:31:17 -05:00
auto-redrawing.html build 2015-12-20 09:27:31 -05:00
benchmarks.html build 2015-12-20 09:27:31 -05:00
bower.json build 2015-12-20 09:27:31 -05:00
change-log.html build 2015-12-20 09:27:31 -05:00
community.html build 2015-12-20 09:27:31 -05:00
comparison.html build 2015-12-20 09:27:31 -05:00
component.json build 2015-12-20 09:27:31 -05:00
components.html build 2015-12-20 09:27:31 -05:00
getting-started.html build 2015-12-20 09:27:31 -05:00
how-to-read-signatures.html build 2015-12-20 09:27:31 -05:00
index.html build 2015-12-20 09:27:31 -05:00
installation.html build 2015-12-20 09:27:31 -05:00
integration.html build 2015-12-20 09:27:31 -05:00
mithril.component.html build 2015-12-20 09:27:31 -05:00
mithril.computation.html build 2015-12-20 09:27:31 -05:00
mithril.d.ts build 2015-12-20 09:27:31 -05:00
mithril.deferred.html build 2015-12-20 09:27:31 -05:00
mithril.deps.html build 2015-12-20 09:27:31 -05:00
mithril.html build 2015-12-20 09:27:31 -05:00
mithril.js build 2015-12-20 09:27:31 -05:00
mithril.min.js build 2015-12-20 09:27:31 -05:00
mithril.min.js.map build 2015-12-20 09:27:31 -05:00
mithril.min.zip rebuild 2015-12-20 09:29:56 -05:00
mithril.mount.html build 2015-12-20 09:27:31 -05:00
mithril.prop.html build 2015-12-20 09:27:31 -05:00
mithril.redraw.html build 2015-12-20 09:27:31 -05:00
mithril.render.html build 2015-12-20 09:27:31 -05:00
mithril.request.html build 2015-12-20 09:27:31 -05:00
mithril.route.html build 2015-12-20 09:27:31 -05:00
mithril.sync.html build 2015-12-20 09:27:31 -05:00
mithril.trust.html build 2015-12-20 09:27:31 -05:00
mithril.withAttr.html build 2015-12-20 09:27:31 -05:00
mithril.xhr.html build 2015-12-20 09:27:31 -05:00
optimizing-performance.html build 2015-12-20 09:27:31 -05:00
package.json build 2015-12-20 09:27:31 -05:00
pages.json build 2015-12-20 09:27:31 -05:00
practices.html build 2015-12-20 09:27:31 -05:00
README.md build 2015-12-20 09:27:31 -05:00
refactoring.html build 2015-12-20 09:27:31 -05:00
roadmap.html build 2015-12-20 09:27:31 -05:00
routing.html build 2015-12-20 09:27:31 -05:00
style.css build 2015-12-20 09:27:31 -05:00
tools.html build 2015-12-20 09:27:31 -05:00
web-services.html build 2015-12-20 09:27:31 -05:00

JS.ORG Join the chat at https://gitter.im/lhorie/mithril.js Build Status

Mithril

A Javascript Framework for Building Brilliant Applications

See the website for documentation

There's also a blog and a mailing list


What is Mithril?

Mithril is a client-side MVC framework - a tool to organize code in a way that is easy to think about and to maintain.

Light-weight

  • Only 7kb gzipped, no dependencies
  • Small API, small learning curve

Robust

  • Safe-by-default templates
  • Hierarchical MVC via components

Fast

  • Virtual DOM diffing and compilable templates
  • Intelligent auto-redrawing system

Sample code

//namespace
var app = {};

//model
app.PageList = function() {
	return m.request({method: "GET", url: "pages.json"});
};

//controller
app.controller = function() {
	var pages = app.PageList();
	return {
		pages: pages,
		rotate: function() {
			pages().push(pages().shift());
		}
	}
};

//view
app.view = function(ctrl) {
	return [
		ctrl.pages().map(function(page) {
			return m("a", {href: page.url}, page.title);
		}),
		m("button", {onclick: ctrl.rotate}, "Rotate links")
	];
};


//initialize
m.mount(document.getElementById("example"), app);

Learn more