render

bootlace.util.render(item: Taggable | dom_tag | str | Iterable[Taggable | dom_tag]) Markup[source]

Render an item to a Markup object.

This function is a convenience wrapper around as_tag() and dominate.tags.html_tag.render(). It will try to convert most objects to a dominate tag and then render it to a Markup object which can be inserted into jinja templates.

Arguments

param item:

The item to render. See as_tag() for more information.

returns:

A Markup object, suitable for inserting into a jinja template.