Mithril is a client-side Javascript MVC framework, i.e. it’s a tool to make application code divided into a data layer (called “Model”), a UI layer (called View), and a glue layer (called Controller). Mithril is around 3kb gzipped thanks to its small, focused, API. It provides a templating engine with a virtual DOM diff implementation for performant rendering, utilities for high-level modelling via functional composition, as well as support for routing and componentization.
The goal of the framework is to make application code discoverable, readable and maintainable, and hopefully help you become an even better developer. Unlike some frameworks, Mithril tries very hard to avoid locking you into a web of dependencies: you can use aslittle of the framework as you need.
However, using its entire toolset idiomatically can bring lots of benefits: learning to use functional programming in real world scenarios and solidifying good coding practices for OOP and MVC are just some of them.
[button color=”red” size=”medium” link=”http://lhorie.github.io/mithril/” target=”blank” rel=”nofollow” ]Mithril[/button]
Yay, yet another client MVC framework — definitely need more of those.
That there’s yet another person trying to solve a common struggle doesn’t seem silly at all. late-comers often end up cutting the fat everyone before them included, and solve problems that emerged after their projects were already set in their trajectory.
I say SWEET! Why be discouraging?