swiplwebtut
swiplwebtut copied to clipboard
A tutorial for the swipl web framework
Is this a permanent problem?
Some guidance on which modules to use was pushed to the documentation but is not yet reflected in the tutorial (web.txt): https://github.com/SWI-Prolog/packages-http/pull/135/files (I can do this; don't know when ......
this ``` phrase( html( [head(title('Howdy')), body([h1('A Simple Web Page'), p('With some text')]) ]), TokenizedHtml, []), ``` is followed by discussion of phase/2 - its phase 3
Jan made the status page customizable. % TODO add activation page % %! http:status_page(+Term, +Context, -HTML) % % Provide a custom error page for the forbidden action. http:status_page(forbidden(Path), Context, HTML)...
Jan recently made a module that imports most of the other modules needed for web dev. Add this module
It's not clear (because I didn't know) that the 'raw writing' method is writing a CGI document.
The HTML tutorial at https://swish.swi-prolog.org/example/swish_tutorials.swinb already points here but I think it would make it more approachable and fun if this is a notebook as well. And also easier to...
in the web tutorial, section 3.8.5 Attributes, it looks like the '?' is no longer necessary in `href='mep.php?'+[name=Name, email=Email, sex=Sex]` The concatenation with a list of K=V pairs inserts a...
remove the old JSON handling material and replace with dicts
It would be good to have sample answers to all exercises