TemplateFormatter

Provides a formatter for fields that allows for the inclusion of standard Bootstrap HTML elements alongside the classic formatting

max_recusion: int
directives: TemplateFormatDirective
frozendict: frozendict

 

__init__(self, templates): 

 

@property
format_parameters(self): 

 

@property
templates(self): 

 

@property
special_callbacks(self): 

 

@property
callback_map(self): 

 

apply_eval_tree(self, _, spec) -> str: 

 

apply_directive_tree(self, _, spec) -> str: 

 

apply_assignment(self, key, spec) -> str: 

 

apply_raw(self, key, spec) -> str: 

 

apply_comment(self, key, spec) -> str: 

 

apply_directive(self, key, spec) -> str: 

 

format_field(self, value: Any, format_spec: str) -> str: 

 

load_template(self, template): 

 

vformat(self, format_string: str, args: Sequence[Any], kwargs: Mapping[str, Any]): 

Feedback

Examples

Templates

Documentation