forget about html, you can do everything in js and node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
Makefile
README.md
example.js
run adding run script and tidy dependencie for pretty printer Dec 10, 2010

README.md

mjs

Write html in javascript in a functional way.

You can code like that:

html(
	body(
		div({id: content, background: red},
			div({id: main},
				"Main content of website"
			),
			div({id: navigation},
				"Content for right nav"
			)
		)
	)
);

Install tidy to get pretty printer for the html: sudo apt-get install tidy

To run with tidy: ./run example.js

To run without tidy: node example.js

To run tests: make