sgml
v0.3.0-beta
Published
library for parsing, templating, and serving SGML on the web
Downloads
80
Readme
sgmljs.net - a Node.js library for parsing, templating, and serving SGML
This package contains the following components:
an API for parsing and processing SGML
an app for parsing and processing SGML on the command line (
sgmlproc)an expressjs (or Node.js core http) middleware for serving SGML as HTML on the web (
sgml.middleware); a basic default web app (sgmlweb-app) is included as wella browser app (
sgml-ua.jsandsgml-ua.min.js) for templating SGML on a web browser designed to work along withsgmlweb-appandsgml.middlewarefor offloading SGML processing from a web server to the browser
See http://sgmljs.net for details on how to use sgmljs.net.
For reproducability, sgml-ua.min.js can be recreated
from sgml-ua.js using Google's closure-compiler
as follows (note for unknown reasons, npm install won't
install closure-compiler as devDependency, even though manually
unpacking the package using tar does).
tar xzf sgml-x.y.z.tgz
cd package
npm install --only=dev
npm run-script rebuild-sgmlua