Skip to content

fantaclaus/tswlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This library can be used to create client-side web applications. All rendering of HTML is done entirely in the Typescript code. The library has no dependencies.

Example

This is an example of a very simple script which displays a list of text items:

const items = ["item 1", "item 2", "item 3"];

const content =
	tsw.html.ul().children([
		items.map(item => tsw.html.li().children(item)),
	]);

tsw.setContent(document.body, content);

About

Client-side HTML rendering library. No templates. Typescript only.

Resources

License

Stars

Watchers

Forks