Tools and Utilities

bootlace.util Module

Functions

as_tag(item)

Convert an item to a dominate tag.

is_active_endpoint(endpoint, url_kwargs[, ...])

Check if the current request is for the given endpoint and URL kwargs

maybe(cls)

Convert a string to a class instance if necessary.

render(item)

Render an item to a Markup object.

Classes

BootlaceWarning

A warning specific to Bootlace

Classes(tag)

A helper for manipulating the class attribute on a tag.

HtmlIDScope([scopes])

A helper for generating unique HTML IDs.

Taggable(*args, **kwargs)

Protocol for objects that can be converted to a tag.

Tag(tag[, classes, attributes])

A helper for creating tags.

Variables

IntoTag

A type that can be converted to a tag

MaybeTaggable

A type that can be converted to a tag via as_tag()

ids

A helper for generating unique HTML IDs.

Class Inheritance Diagram

Inheritance diagram of bootlace.util.BootlaceWarning, bootlace.util.Classes, bootlace.util.HtmlIDScope, bootlace.util.Taggable, bootlace.util.Tag