Neophobe Plebeian Mumpsimus
Have ideas to improve npm?Join in the discussion! »

nviewjs

1.0.3 • Public • Published

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.

Reference Tutorial Description
jQuery.fn.nview tutorial-basic.html Apply to template.
$nview tutorial-static-nv.html Helper methods.
NvIn tutorial-input.html Input helper class for extending.
NvOut tutorial-output.html Output helper class for extending.
NvAct tutorial-act.html Statement helper class for extending.
NvMethod tutorial-method.html Method helper class for extending.
-- tutorial-value.html ---
-- tutorial-apply-noparse.html ---
-- tutorial-demo-various.html ---

Distributions

For detail, see reference. In dist directory,

Distribution Introduction
nview.js / nview.min.js Library script.
nview.css / nview.min.css Only hide css.

Relation library(any-js series)

Library Introduction Requirements
anyjs Basic methods and UI helper library. jQuery library
najaxjs Simple ajax library. None
nviewjs View template engine. jQuery library / anyjs

License

Released under the MIT license. See LICENSE.

ChangeLog

See CHANGELOG.

Install

npm i nviewjs

DownloadsWeekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar