html quasiquoter

Anne Ogborn <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
This morning got a rude suprise - the html quasiquoter doesn't produce what html//1 expects.

I did 

menubar(fixed_width, PageLocation) -->
html(\
    {|html(PageLocation)||
    <div id='menubar'>
        <div class='menubar fixed-width'>
            <ul class='menubar-container'>
                <li><a href="/">HOME</a></li>
                <li>DOWNLOAD... much more HTML ...
   |}).

and got (Oops!):

plweb_page:menubar(fixed_width, _, A, B) :-
html(\[element(div, [id=menubar], ['        ', element(div, [class='menubar fixed-width'], ['            ', element(ul, [...], [...|...]), '\n        ']), '\n    '])],
     A,
     B).


Guess we need to have a dom quasiquoter or some as_dom   (which will be inelegant)?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.