@version 0.15.5 @date 2017-04-16 @stability 2 - Unstable
Weighing in at just 25KB (11KB gzipped), it includes everything you need to build a modern web application:
In short - an application consists of a presentation layer (UI) and a data layer (Model).
Most template engines translates its own custom syntax to HTML string and then let browsers to parse HTML into a DOM.
HTML is a markup language for building DOM tree from a string.
LiteJS have a DOM-aware template engine, that bypasses HTML string part and turns templates directly to DOM nodes.
Declare elements and attributes with clear, well-indented CSS selectors.
My linkItem AItem B
Plugins starts with
@ in template files.
#are hidden without a route.
Bindings starts with
& in template files.
Bindings ties together UI and Model.
To detect and respond to changes LiteJS uses observables.
Item is a cached by id and observable Object.
List is a cached by name and observable Array of
that can be merged, sorted, filtered, paged and loaded asynchronously.
Defined global variables
// Optional path for views, default = ""Viewbase = "/js/views/"// Define starting point in DOM// Default viewViewmain = "home"// El.data is a root scope for elements, make View visible for templatesEldataView = View