Skip to content
minimalistic javascript framework
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Tests
.gitignore karma tests inited
LICENSE
README.md README changed
bower.json router fix bug
karma.conf.js
light.js
package.json

README.md

Light.js

Light.js is a minimalistic javascript framework for building RESTFull web applications.

Documentation

Light.js contains the necessary functionality to work with a DOM tree.

  • $.gId - search by id
  • $.gClass - search by ClassName
  • $.gTag - search by Tag Name
  • $.gQ - search by QuerySeletor
  • $.gQA - search by QuerySelectorAll

Light.js has a routing. Example routing configuration shown below.

  • $.router
  • .when('#todo', {
  • controller:'TodoCtrl',
  • action: '$index'
  • })
  • .when('#todo/:id', {
  • controller:'TodoCtrl',
  • action: 'todoItem'
  • })
  • .when('#test', {
  • controller:'TestCtrl'
  • })
  • .otherwise({
  • redirectTo:'#todo'
  • })
  • .run();

In framework integrated publicher/observer design pattern. Syntax for make object as pubisher need to call function

  • $.publisher(objectPublisher)

Framework contains functions for build easy RESTFull applications

  • $.http.get - to create GET request
  • $.http.post - to create GET request
  • $.http.delete - to create GET request
Something went wrong with that request. Please try again.