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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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)
Can be any type that implements Controller
interface.
Can be any type you want, however it is a good idea to place data in Property<'t>
with property
function.
Yet to come.