1.0.3 • Published 8 years ago

nviewjs v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

MIT License

nviewjs - View template engine

any series   https://any-js.github.io/

Features

  • nviewjs. View template engine.

  • NvIn set input behaviors - method of input, validate and alter value.

  • NvOut set out behaviors - modify value.

  • NvAct provide statement in template.

  • NvMethod provide method in template.

Requirements

  • nviewjs requires jQuery and anyjs library.

Browser Support

  • Modern web-browsers(Chrome, IE, Firefox, Safari, Opera) support.
  • IE browser: Support IE9. Loose support in IE8. (You can use most of the functions.)
  • Legacy browser partially support.

Basic usage

$('#sample').nview().sync();
$('#sample').nview({act: false}, null, nvOut).sync();
$('#sample').nview({output: false});
$('#sample').nview({bindParse: false});
$('#sample').nview({}, null, {
  attach: { abc: function(v){return v * 3;} }
});
$('#sample').nview({}, nvIn, nvOut, nvMethod, nvAct, nvManager).sync();

Tutorials / Demos / Reference

There are many tutorials.

ReferenceTutorialDescription
jQuery.fn.nviewtutorial-basic.htmlApply to template.
$nviewtutorial-static-nv.htmlHelper methods.
NvIntutorial-input.htmlInput helper class for extending.
NvOuttutorial-output.htmlOutput helper class for extending.
NvActtutorial-act.htmlStatement helper class for extending.
NvMethodtutorial-method.htmlMethod helper class for extending.
--tutorial-value.html---
--tutorial-apply-noparse.html---
--tutorial-demo-various.html---

Distributions

For detail, see reference. In dist directory,

DistributionIntroduction
nview.js / nview.min.jsLibrary script.
nview.css / nview.min.cssOnly hide css.

Relation library(any-js series)

LibraryIntroductionRequirements
anyjsBasic methods and UI helper library.jQuery library
najaxjsSimple ajax library.None
nviewjsView template engine.jQuery library / anyjs

License

Released under the MIT license. See LICENSE.

ChangeLog

See CHANGELOG.