Did you know ... | Search Documentation: |
html_quasiquotations.pl -- HTML quasi quotations |
This module implements quasi quotations for HTML. Together with library(http/html_write), this allows for inclusion of long HTML fragments in the Prolog source code while replacing attributes and content with variable that come from the surrounding Prolog clause.
This module is included and re-exported from library(http/html_write).
html
indicator. If
the variable defines content, it must be the only content. Here
is an example, replacing both a content element and an
attribute. Note that the document is valid HTML.
html({|html(Name, URL)|| <p>Dear <span class="name">Name</span>, <p>You can <a href="URL">download</a> the requested article now. |}