Mithril Starter Kit screenshot

Mithril Starter Kit

Author Avatar Theme by Philtoms
Updated: 8 Jan 2015
50 Stars

A Starter kit for building apps with Mithril custom element types

Categories

Overview

The Mithril.Elements Starter Kit is a thin wrapper around the Mithril JavaScript framework that allows developers to create composable custom element types. These custom elements can be used alongside default DOM elements in Mithril views, enabling a more flexible and feature-oriented program structure.

Features

  • Custom Elements: Mithril.Elements allows developers to create custom element types that are first-class citizens in the Mithril framework. These custom elements can be composed naturally with existing DOM elements.
  • Overloading Existing DOM Tags: Mithril.Elements also supports overloading existing DOM tags. This means that developers can use custom elements to tame complex components, such as large tables, within their Mithril applications.
  • Easy Integration: There are three ways to use Mithril.Elements: downloading the starter kit and linking the necessary files, using npm to install Mithril.Elements into an existing Mithril project, or cloning/forking the starter kit repository and starting the development process.

Installation

To install the Mithril.Elements Starter Kit:

  1. Download this project and link to the Mithril and Mithril.Elements files in the head of your application.
  2. Alternatively, you can use npm to install Mithril.Elements into your current Mithril project and require it in your application.
  3. The easiest option is to clone or fork the Mithril.Elements repository and start hacking.

Summary

The Mithril.Elements Starter Kit is a powerful tool for developers using the Mithril JavaScript framework. Through its thin wrapper, Mithril.Elements allows for the creation of custom element types that seamlessly integrate with existing DOM elements. This flexibility enables developers to build more feature-oriented program structures and easily manage complex components within their Mithril applications. The installation process is simple and can be done in a variety of ways, making it accessible for developers at all levels of expertise.