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 well -
a browser app (
sgml-ua.js
andsgml-ua.min.js
) for templating SGML on a web browser designed to work along withsgmlweb-app
andsgml.middleware
for 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