Skip to content
/ jLive Public

Javascript BackboneJS Helper and Object for dynamic and realtime w/ URI autorefresh

Notifications You must be signed in to change notification settings

tornad/jLive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Concept

The principle of Jlive is based on the triplet screen / action / event.

This creates a unified operation of the application. We see the display, an action changes an object (model), an event is issued to inform the change of content / value of the object. Then, the display is rebuilt with the new values.

Unlike a conventional operation, the call to action will not return a result or value that will be used in the display. The call for action causes a change in the model, and this change will be reflected in the display via the receipt of an event send by the server.

This is what we called the one way workflow.

One way workflow

sample use

  var gitList = new jLive('https://api.github.com/events')
    .setTemplate('.template_GitList')
    .setLayout('.viewRenderGitList');

or

  var gitList = new jLive({
      url: 'https://api.github.com/events'
      ,template: '.template_GitList'
      ,layout:'.viewRenderGitList'
  });

About

Javascript BackboneJS Helper and Object for dynamic and realtime w/ URI autorefresh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published