dj_angles.mappers.angles

Module Contents

dj_angles.mappers.angles.default_mapper(tag: dj_angles.tags.Tag) str

The default mapper which gets used when no other mapper matches a key in the tag_map.

Basically works like map_include except the element’s name is used for the template file.

Examples

  • <dj-partial /> is equivalent to <dj-include ‘partial’ />

Parameters:

tag (param) – The tag to map.

dj_angles.mappers.angles.map_angles_include(tag: dj_angles.tags.Tag) str

Mapper function for the angles include tag; handles the implementation of slots.

Parameters:

tag (param) – The tag to map.

dj_angles.mappers.angles.map_call(tag: dj_angles.tags.Tag, template_tag_name: str = 'call') str

Mapper function for the dj-angles call template tag.

Parameters:
  • tag (param) – The tag to map.

  • template_tag_name (param) – The name of the template tag to use. Defaults to “call”.

dj_angles.mappers.angles.map_model(tag: dj_angles.tags.Tag) str

Mapper function for the dj-angles model template tag.

Parameters:

tag (param) – The tag to map.

dj_angles.mappers.angles.map_form(tag: dj_angles.tags.Tag) str

Mapper function for the dj-angles form template tag.

Parameters:

tag (param) – The tag to map.