natter/default_environment/templates/html/plain_list_item.dust
2023-10-27 20:18:19 -04:00

7 lines
377 B
Plaintext

{@select key=list_type}
{@eq value="unordered"}<li>{#.children}{>element/}{/.children}</li>{/eq}
{@eq value="ordered"}<li>{#.children}{>element/}{/.children}</li>{/eq}
{@eq value="descriptive"}<dt>{#.tag}{>object/}{/.tag}</dt><dd>{#.children}{>element/}{/.children}</dd>{/eq}
{@none}{!TODO: make this panic!}ERROR: Unrecognized list type {.list_type}.{/none}
{/select}