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)?