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()anddominate.tags.html_tag.render(). It will try to convert most objects to adominatetag and then render it to aMarkupobject which can be inserted intojinjatemplates.Arguments¶
- param item:
The item to render. See
as_tag()for more information.- returns:
A
Markupobject, suitable for inserting into ajinjatemplate.