Renders the contents of the Fact behind a Card to a suitable format.
“used_for” = card_type class
-
render_card_fields(card, fields)
- Renders a sequence of fields from a card, e.g. by generating html
for them. ‘fields’ is typically either fact_view.q_fields or
fact_view.a_fields.
-
render_text(text, field_name, card_type)
- A lower lever renderer, rendering ‘text’ from a field with name
‘field_name’ from ‘card_type’.
-
set_property(property_name, property, card_type, fact_key=None)
- Set a property (like font, colour, ..) for a certain card type.
If fact_key is None, then this will be applied to all fact keys.
-
update(card_type)
- Update renderer information for given card type.