Re: pengines extension to html_requires
Anne Ogborn <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 02/07/2014 03:34 AM, Anne Ogborn wrote: > It'd be delightful if pengine code worked with the resources stuff so > we could use with html generation. That was in Torbjörn's version by declaring html//1 as safe. As html//1 does You're misunderstanding me. I mean, currently if I'm using html_write and html//1 to generate pages, I have to do \[...] trickery to insert <script type="text/x-prolog"> q(X) :- p(X),pengine_server:taco(X). p(a). p(b). p(c). p(d). p(e). p(f). p(g). </script> > If you want to do server-side page generation, why not do it the way it is described in your tutorial, i.e., just by extending the server? What do pengines add to this picture. Just that there's a new sort of thing to include. So it should be supported by quasiquotes, resource management, there should be a pscript equivalent to jscript, and other good things. >You may want to mix the two, generating a page from the server and using pengines to provide AJAX functionality to the page. Precisely the situation I'm in. Weblog will do most of the page generation for me, and there's lots of repetitive elements, so it makes sense to have the server generate the page. But then the map's markers change dynamically as the game's played - an obvious ajax task.