fable-compiler/fable-mithril

Name: fable-mithril

Owner: Fable

Description: Fable bindings, helpers and samples for Mithril

Created: 2016-09-09 17:19:52.0

Updated: 2016-09-10 22:25:43.0

Pushed: 2016-09-13 19:46:21.0

Homepage: null

Size: 11

Language: F#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Mithril.fs: Mithril bindings and api layer for Fable

This api follows KISS priciples. Mithril is a lightweight and fast MVC js framework with VDom. Most of m api is wrapped accept for the m() function which is replaced by the Html Element and Attribute generator functions.

View

Html element functions: Attributes option -> obj List -> VirtualElement However only string, VirtualElement and Component<'t> as objects are accepted. Attributes generater function attr: (string * obj) list -> Attributes option Attribute helper functions: prop, css, name, incss, bindattr, and all events return a (string * obj)

Controller

Can be any type that implements Controller interface.

Model

Can be any type you want, however it is a good idea to place data in Property<'t> with property function.

Routing

Yet to come.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.