Demonstrate block regions /admin/structure/block/demo/ekam

The website encountered an unexpected error. Try again later.
Twig\Error\SyntaxError: Unexpected "spaceless" tag (expecting closing tag for the "for" tag defined near line 27). in Twig\Parser->subparse() (line 30 of themes/ekam/templates/navigation/toolbar.html.twig).

https://www.codebales.com/twigerrorsyntaxerror-unexpected-spaceless-tag
\ekam\templates\navigation\toolbar.html.twig

 * @see template_preprocess_toolbar()
 */
#}
<div{{ attributes.addClass('toolbar') }}>
  <nav{{ toolbar_attributes.addClass('toolbar-bar', 'clearfix') }}>
    <h2 class="visually-hidden">{{ toolbar_heading }}</h2>
    {% for key, tab in tabs %}
      {% set tray = trays[key] %}
      <div{{ tab.attributes.addClass('toolbar-tab') }}>
        {{ tab.link }}
        {#% spaceless %#}{% apply spaceless %}
          <div{{ tray.attributes }}>
            {% if tray.label %}
              <nav class="toolbar-lining clearfix" role="navigation" aria-label="{{ tray.label }}">
                <h3 class="toolbar-tray-name visually-hidden">{{ tray.label }}</h3>
            {% else %}
              <nav class="toolbar-lining clearfix" role="navigation">
            {% endif %}
            {{ tray.links }}
            </nav>
          </div>
        {% endapply %}{#% endspaceless %#}
      </div>
CommentFileSizeAuthor
#2 3411412-2.patch785 bytesdineshkumarbollu

Issue fork ekam-3411412

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Promo-IL created an issue. See original summary.

dineshkumarbollu’s picture

Status: Active » Needs review
StatusFileSize
new785 bytes

Hi @Promo-IL

Created patch for this please review.Thanks

keshavv’s picture

Status: Needs review » Reviewed & tested by the community

This patch will only work for Drupal ^10. Please create a separate release for it.

  • 9b97b5f4 committed on 8.0.x
    Issue #3411412 by ptiwebtech: Twig SyntaxError: Unexpected spaceless....

ptiwebtech’s picture

ptiwebtech’s picture