utils
Shared laminar utilities.
Functions
stringify
|
Create a string representation of an object. |
-
laminar.utils.stringify(obj: object, name: str, *attrs: str, empty: bool =
False
) → str
Create a string representation of an object.
- Parameters
- obj: object
Object the representation is for.
- name: str
Name of the object
- *attrs
Attributes to include in the representation.
- empty: bool =
False
If the body of the representation should be empty.
- Returns
Object’s string representation.
Modules