More of a usage question than a programming question, in relation to:
BaseX RESTXQ "hello world" example
How do I use RESTXQ with BaseX for a simple web app?
basex/rest - blog complete app
Is there a way to make BaseX serve an HTML document?
Certainly, it's easy enough to fork the blog app. However, it's also eight years old.
The sample from the documentation is:
module namespace page = 'http://basex.org/examples/web-page';
declare %rest:path("hello/{$who}") %rest:GET function page:hello($who) {
<response>
<title>Hello { $who }!</title>
</response>
};
where is this saved to, precisely? Is it added to a database within BaseX
itself or does this exist outside as a file?