SWI-Prolog / pengines

Pengine and Prolog scratchpad
BSD 2-Clause "Simplified" License
56 stars 16 forks source link

Portray to HTML #2

Open JanWielemaker opened 10 years ago

JanWielemaker commented 10 years ago

We need a way to make print/1, calling portray/1 to display terms as HTML instead of plain text. For example:

html_portray(Link) :-
    is_uri(Link),
    html(a(href(Link), Link).
Anniepoo commented 8 years ago

Would it be good if this was somehow done uniformly with the 'render' directive in SWISH?