Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Interactive data-driven views, MVVM and MVP, built on top of JsRender templates
branch: master

Commit 62 (Beta Candidate)

- Improved support for data-linked element expressions
  using tags
  e.g. <div data-link="{if foo tmpl='...'}">

  This now supports one or more {else} expressions

  <div data-link="{if a tmpl='...'}{else b tmpl='...'}">

  It also supports linking tag expressions to different
  targets, such as title{... css-color{... class{... etc.

  e.g.
  data-link="title{for items tmpl='...'}{else tmpl='...'}"

  See #293
  http://stackoverflow.com/a/28060034/1054484

- Tag inheritance now supports multi-level inheritance with
  easy invocation of the base class implementation using
  this.base(...) or this.baseApply(arguments):
  e.g.
  {
    baseTag: "for",
    onAfterLink: function() {
      ...
      this.baseApply(arguments);
    }
    ...
  }

  Similarly for callbacks declared declaratively on tags:
  e.g.
  {{for items onAfterLink=~myHelper onUpdate=~dbg}}...

  The above uses the built in ~dbg helper, and a user-provided
  helper, such as:

  function myHelper() {
    ...
    this.baseApply(arguments);
  }

- Many new unit tests added for the above new features.

- Some small additional bug fixes.
latest commit 074f8b228b
Boris Moore authored

README.md

JsViews: Next-generation MVVM and MVP framework - bringing templates to life

The power of MVVM, the flexibility of JavaScript, the speed and ease of JsRender templates

JsViews builds on top of JsRender templates, and adds data-binding and observable data, to provide a fully-fledged MVVM platform for easily creating interactive data-driven single page apps and websites.

JSRender and JsViews together provide the next-generation implementation of both JQuery Templates, and JQuery Data Link - and supersede those libraries.

See also the JsRender repository on GitHub

Documentation and Downloads

Documentation, downloads, samples are available on the www.jsviews.com website.
(JsViews and JsObservable API docs and tutorials are coming soon, as we move JsViews to the official beta and on to V1.0)

Demos

In addition to the demos at www.jsviews.com/#samples, see also the demos folder of this GitHub repository - available here as live samples.

Current Status

JsViews is now an alpha release, which will be declared beta as soon as API documentation is complete on the www.jsviews.com website, and then move to V1.0.

Something went wrong with that request. Please try again.