Many thanks for your comments.
On Fri May 22 18:18:01 2015, ASB wrote:
Show quoted text>
> 5 additional things came to my attention:
>
> 1. A file extension can also be a cgi file:
>
> Although you put a lot of work into the tutorial section about "URL
> SEMANTICS COMPARED TO DIRECTORY SEMANTICS", I ran into this problem.
> It was not that obvious. As I'm running the script in CGI mode (as I
> will convert it into an offline page anyway, speed doesn't matter), I
> had a home URL named
http://localhost/cgi-bin/myapp/myapp.cgi
>
> This is similar to a URL without extension. I had to change the URL
> to:
>
http://localhost/cgi-bin/myapp/myapp.cgi/index.html
>
What would be a solution to that issue?
I'm of the opinion that, if you want your web application to convert
smoothly to a static site, you have to put some effort into it, as
a static website imposes some restrictions on the type of URL that
can be served (no query-string, for example).
Wallflower does a naïve conversion from the URL it's given:
https://github.com/book/App-Wallflower/blob/master/lib/Wallflower.pm#L50
There might be something that could be done with PATH_INFO, but I don't
see it yet.
Show quoted text> 2. wallflower is a bit tricky to debug
>
> It was a bit tricky to debug. I modified the Wallflower.pm file and
> added STDERR output messages. Logging would be nice. Would you accept
> a patch, once the module is available on github?
> Or is there a simple way I didn't get?
I'd be interested to know the type of logging you've added.
I've been adding some options, but they only control which
URL and status codes are shown.
Show quoted text> 3. undocumented --filter option
>
> There is no documentation for --filter. Not in the wallpaper tutorial,
> not in the main manpage, and I didn't find a test for it. Is it just a
> list of URLs? Or can there be place hodlers?
I think the only documentation is here:
https://github.com/book/App-Wallflower/blob/master/bin/wallflower#L39
https://github.com/book/App-Wallflower/blob/master/bin/wallflower#L66
The arguments are URL from which Wallflower will start.
The --filter option turns it into a "filter", so you can do:
script-that-prints-url | wallflower --filter
or
wallflower --filter urls.txt
Show quoted text> 4. There is no link to the tutorial in wallflower's manpage. There is
> only this one link that referrs to the section "URL SEMANTICS COMPARED
> TO DIRECTORY SEMANTICS".
>
> Could you please add it to SEE ALSO section?
Will do.
Show quoted text> 5. it just works
>
> Although there are some issues as pointed out before, it just works.
> Thank you for this great piece of software! I really enjoy it.
Thanks!