Since I do prefer html_write to plain HTML coding, I wonder if Pengines
> applications support the usual :- http_handler and friends.
I tend to avoid generating HTML altogether and instead serve only static
returns JSON which creates and controls the behaviour of the app. That's a
clean interface which also makes the division of labour between a front-end
programmer and a back-end programmer easy to uphold.
I doubt that you for safety reasons at this point can use the usual :-
http_handler and friends in code *injected* in a pengine by the
client/user. For code that you control yourself, anything is possible,
including the use of html_write. Using Pengines doesn't preclude the use of
*any* other libraries as far as I know.
Hope this helps.
> The tutorial suggests we should go with HTML, and I think I could hack the
> schema doing HTML generation when registering the application module. But I
> don't like too much...
> thanks Carlo
> -------------- next part --------------
> HTML attachment scrubbed and removed
> SWI-Prolog mailing list
> [hidden email] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog >
Professor of General and Computational Linguistics
Department of Philosophy, Linguistics and Theory of Science
University of Gothenburg
Box 200, SE-405 30 Gothenburg, Sweden
-------------- next part --------------
HTML attachment scrubbed and removed
SWI-Prolog mailing list
[hidden email] https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog