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 which is custom to handle slots.

Parameters:

tag (param) – The tag to map.