{#
/**
 * Available variables:
 * - li_element - the base classname
 * - li_modifiers - array of modifiers to add to the base classname
 * - li_block - block prepended to the base classname
 * - list_item_label - (optional) a <strong> label before the list item itself
 * - list_item_content - the content of the list_item (typically text)
 *
 * Available blocks:
 * - list_item_content - used to replace the content of the list_item with something other than text
 *   for example: to insert the image and/or link components
 */
#}

{% set bem_li_block = bem_li_block|default('list') %}
{% set bem_li_element = bem_li_element|default('item') %}

{% set bem_li_attributes = bem_li_attributes|default(create_attribute()) %}

<li {{ bem_li_attributes.addClass(bem(bem_li_block, bem_li_element, bem_li_modifiers, bem_li_extra)) }}>
  {% block list_item_content %}
    {{ list_item_content }}
  {% endblock list_item_content %}
</li>
