Skip to content
/ control Public

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

License

Notifications You must be signed in to change notification settings

ewoudj/control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

npm install controljs

Example usage:

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()

Resulting HTML:

<html>
	<head>
		<title>Hello world app.</title>
	</head>
	<body>
		<h1>Hello world!</h1>
	</body>
</html>

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published