Single-page application framework
@version 0.6.1 @date 2016-04-07 @stability 1 - Experimental
Weighing in at just 23KB, it includes
It has a template engine with CSS selectors syntax for describing elements and attributes.
Item AItem B
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 <firstname.lastname@example.org>
The MIT License