Thanks for the input.
"fossil test-http" did the trick:

webpage=/setup
printf "GET $webpage HTTP/1.0\n\n" | fossil test-http

My purposes for parsing the built-in web pages are basically two:

1. I want to hack the Fossil code:
    a. I parse and save the HTML from the builtin pages (excluding
pages where the output makes no sense, for example /zip)
    b. I modify the source code (related to one or more web pages)
    c. I parse the same pages again to check that I have changed only
the web page output I intended to change. A kind of self test before
committing.

This WoW is obviously only helpful for a developer changing the Fossil
source code of one single (official) commit.
It does not make sense to save the output for later use and compare it
between commits, as the content/structure may change.


2. I want to validate the web pages: Validate the HTML, check for
broken links, etc, using for example the W3C validation tools.

This kind of validation could be used both to find existing, and to
avoid introducing new invalid HTML.
Could possibly be useful both for programmers and for skin-makers.


BR,
Johan



On Wed, Jun 7, 2017 at 11:53 AM, Stephan Beal <sgb...@googlemail.com> wrote:
> On Wed, Jun 7, 2017 at 8:48 AM, Johan Kuuse <jo...@kuu.se> wrote:
>>
>> My idea is to make a script which parses the output from all builtin
>> pages.
>
>
> Be aware that fossil makes NO GUARANTEES about the stability of
> content/structure of any pages (or CLI command output, for that matter).
> Thus any work you do on parsing any pages might be undone by any given
> commit to the main fossil tree.
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
> those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to