/jLive

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

Primary LanguageJavaScript

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'
  });