1.2.4 • Published 6 months ago

xmlweb v1.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 months ago

xmlweb ·

Xmlweb is a web server designed based on the state machine theory. Before you learn to use the framework, make sure you are familiar with the xmlplus framework.

Installation

If having installed the NPM client, you can install xmlweb with NPM.

$ npm install xmlweb

Note, xmlweb requires node v7.0.0 or higher for ES2015 and async function support.

Hello, world

You can test the example with http://localhost.

let xmlweb = require("xmlweb");
xmlweb("xp", function (xp, $_) {
    $_().imports({
        Index: {
            xml: "<i:HTTP xmlns:i='//xmlweb'>\
                    <Hello id='hello'/>\
                  </i:HTTP>"
        },
        Hello: {
            fun: function (sys, items, opts) {
                this.on("enter", (e, d) => {
                    d.res.setHeader("Content-Type", "text/html");
                    d.res.end("hello, world");
                });
            }
        }
    });
}).startup("//xp/Index");

Visit https://xmlplus.cn/xmlweb for more information.

1.2.0

7 months ago

1.1.29

7 months ago

1.1.28

7 months ago

1.2.4

6 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.1.27

3 years ago

1.1.26

3 years ago

1.1.25

6 years ago

1.1.24

7 years ago

1.1.23

7 years ago

1.1.22

7 years ago

1.1.21

7 years ago

1.1.20

7 years ago

1.1.19

7 years ago

1.1.18

7 years ago

1.1.17

7 years ago

1.1.16

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago