EXPERIMENTAL! Single-page application framework
@version 0.2.6 @date 2015-08-25 @stability 1 - Experimental
The main idea is to use a declarative programming as much as possible.
Haml-inspired template engine that uses CSS selectors syntax for describing elements and attributes.
Item AItem B
Type selector, attribute selectors, ID selectors, and pseudo-classes are supported.
Child combinators can be used and you can leave off the tag to get a div.
Organize views into a hierarchy with built-in router.
Viewname element parent contentSelector
String- A name for a view that is also a route to the view. Accepts Level 1 URI Templates RFC 6570
DOM Node- View representation as DOM tree. String and Function will be transformed to DOM Node on first call.
String- Parent view name.
String, optional- A selector to where a child Node will be attached.
// Optional path for views, default = ""View.base = "/js/views/"// Define starting point in DOMView("body", document.body)// Create first simple viewView("home", ".home", "body")// Create another viewView("work", ".work", "body")// StartView.main = "home"history.start(View.route)// call manualyView("home").show()
Copyright (c) 2013-2015 Lauri Rooden <email@example.com>
The MIT License