Add basic templates for plain list.
This commit is contained in:
@@ -1 +1,6 @@
|
||||
plain_list
|
||||
{@select key=.list_type}
|
||||
{@eq value="unordered"}<ul>{#.children}{>plain_list_item/}{/.children}</ul>{/eq}
|
||||
{@eq value="ordered"}<ol>{#.children}{>plain_list_item/}{/.children}</ol>{/eq}
|
||||
{@eq value="descriptive"}<dl>{#.children}{>plain_list_item/}{/.children}</dl>{/eq}
|
||||
{@none}{!TODO: make this panic!}ERROR: Unrecognized list type {.list_type}.{/none}
|
||||
{/select}
|
||||
|
||||
6
default_environment/templates/html/plain_list_item.dust
Normal file
6
default_environment/templates/html/plain_list_item.dust
Normal file
@@ -0,0 +1,6 @@
|
||||
{@select key=list_type}
|
||||
{@eq value="unordered"}<li></li>{/eq}
|
||||
{@eq value="ordered"}<li></li>{/eq}
|
||||
{@eq value="descriptive"}<dt></dt><dd></dd>{/eq}
|
||||
{@none}{!TODO: make this panic!}ERROR: Unrecognized list type {.list_type}.{/none}
|
||||
{/select}
|
||||
Reference in New Issue
Block a user