Modern Act didn't go as well as I thought, and I was very disappointed, so I made a new one.
-
(not yet) The original Modern Act was if xml was parsed to js, Act.js uses js and xml together.
-
The existing Modern Act used the express module, but Act.js implemented the server directly using the http module.
-
Overall, the serious security concerns of the Modern Act have been improved.
Package act.js already exists and has been replaced with n-actjs
import Act from 'n-actjs';
const doc = {
route: `/home`,
method: `get`,
header: { "Content-Type": "text/html" },
body: Act.createElement(`embed`, {},
Act.createElement(`title`, {}, `Examples`),
Act.createElement(`div`, {},
Act.createElement(`h1`, {}, `Hello, world!`)
),
)
};
export default doc;