JSPM

controljs

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q11443F

JavaScript control base class for both server and client side GUI development. Control is the opposite of templating.

Package Exports

  • controljs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (controljs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JavaScript control base class for both server and client side GUI development. Control is the opposite of templating. Currently the API is not stable.

Control.js is for people who prefer their HTML / DOM generating user interface code (server and client) completely written in JavaScript. Control.js aims to be small. Control.js is used extensively by Framework.js that aims to be large.

Example:

new control({
      tag: 'html',
      isRootControl: true,
      items : [
          {tag: 'head', items: [{tag: 'title', controlValue: 'Hello world app.'}]},
          {tag: 'body', items: [{tag: 'h1', controlValue: 'Hello world!'}]}
      ]
}).render()