@version 17.7.2 @date 2017-07-19
The best way to build fast and powerful web interfaces.
Weighing in at just 26KB (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 BClick
Plugins starts with
@ in template files.
#are hidden without a route.
Bindings starts with
& in template files after declaring selector.
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