Generating HTMLΒΆ

This describes some Lino-specific usage of the etgen.html module.

>>> from etgen.html import E
>>> txt = "foo"
>>> txt = E.b(txt)
>>> ar = rt.login('robin', renderer=settings.SITE.kernel.default_renderer)
>>> obj = ar.user
>>> e = ar.obj2html(obj, txt)
>>> print(tostring(e))
<a href="/api/users/Users/1"><b>foo</b></a>