# Title: HubL Syntax Error: Missing end tags for module\_block / module\_attribute / raw when saving tem

**URL:** <https://community.hubspot.com/t/title-hubl-syntax-error-missing-end-tags-for-module-block-module-attribute-raw-when-saving-tem/145764>\
**Category:** CMS Development\
**Created:** [February 3, 2026, 4:28pm UTC](https://community.hubspot.com/t/title-hubl-syntax-error-missing-end-tags-for-module-block-module-attribute-raw-when-saving-tem/145764 "2026-02-03T16:28:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LautaroGriguelo](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@LautaroGriguelo](https://community.hubspot.com/u/LautaroGriguelo)\
**Post date:** [February 3, 2026, 4:28pm UTC](https://community.hubspot.com/t/title-hubl-syntax-error-missing-end-tags-for-module-block-module-attribute-raw-when-saving-tem/145764/1 "2026-02-03T16:28:03Z")

</div>

**Where:**

- Theme: Helpful Hero CLEAN-6-1 (marketplace)
- File type: (I’m not sure if this is a page template vs DnD template vs layout)
- File path: [paste the theme file path only, no company name]

**Errors (exact):**

1. Syntax error in ‘{% module\_block module “widget\_72ae968b-8e89-4725-8e07-2f22ff916b1d” %}’: Missing end tag: end\_module\_block
2. Syntax error in ‘{% module\_attribute “tab” is\_json=“true” %}’: Missing end tag: end\_module\_attribute
3. Syntax error in ‘{% raw %}’: Missing end tag: endraw

**What I’m trying to do:**  
Create an aggregated listing page that pulls posts from two blogs and filters them (type toggle + dropdowns + pagination). The template includes {% extends “…/base.html” %} and {% block body %}…{% endblock %}.

**Suspicion / question:**  
It looks like a DnD/widget wrapper (module\_block / module\_attribute / raw) is being injected or is left open, and then everything after it fails to parse.

- Is it valid to place a page template (with {% extends %}) inside a DnD template/layout?
- Where should endraw, end\_module\_attribute, and end\_module\_block be closed in this situation?
- What’s the correct file type / structure to use for a custom page template in this theme?

**Relevant snippet (top of file):**

{% module\_block module “widget\_72ae968b-8e89-4725-8e07-2f22ff916b1d” %} {% module\_attribute “tab” is\_json=“true” %} {% raw %} … content …

**Relevant snippet (bottom of file):**

… end of file …

Any guidance on the correct structure (DnD vs page template) and where those end tags should live would be appreciated.

---

<div class="post-metadata">

**Author:** ![Victor\_Becerra](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Victor\_Becerra](https://community.hubspot.com/u/Victor_Becerra)\
**Post date:** [February 3, 2026, 9:50pm UTC](https://community.hubspot.com/t/title-hubl-syntax-error-missing-end-tags-for-module-block-module-attribute-raw-when-saving-tem/145764/2 "2026-02-03T21:50:13Z")

</div>

Hi @LautaroGriguelo

Thanks for your post!

I want to share with you two community threads that offers help to solve your issue: [https://community.hubspot.com/t5/CMS-Development/Help-with-understanding-docs-for-module-block/m-p/724361](https://community.hubspot.com/t5/CMS-Development/Help-with-understanding-docs-for-module-block/m-p/724361)

[https://community.hubspot.com/t5/CMS-Development/modules-are-not-shown/m-p/837410#:~:text=are%20not%20shown-,SOLVE,Hope%20this%20helps](https://community.hubspot.com/t5/CMS-Development/modules-are-not-shown/m-p/837410#:~:text=are%20not%20shown-,SOLVE,Hope%20this%20helps).

Also I’m tagging a few community subject matter experts that can offer more insights. Hello there @evaldas @MichaelMa @alyssamwilie Hope you’re having a great day! Any ideas for this issue? Thanks!

Victor

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 3, 2026, 10:20pm UTC](https://community.hubspot.com/t/title-hubl-syntax-error-missing-end-tags-for-module-block-module-attribute-raw-when-saving-tem/145764/3 "2026-02-03T22:20:47Z")

</div>

We would need to see how the full template is laid out to better debug the issue, but as to your questions:

- The extend would usually be at the top of the templte, _outside_ the dnd\_area and your dnd\_area within the designated blocks aka {% block body %}{% endblock %}
- They should close wherever the content inside them ends. Not enough information is really provided about how this is being inserted to provide an in depth answer.
  - I am wondering though what {% raw %} is being used for in this instance? {% raw %} {% endraw %} outputs all HubL inside it as plain text. So if any of your HubL code is inside it it is not being rendered.
  - Also is this being placed inside a dnd\_area? Because you have to use dnd elements when inside a dnd\_area. [Drag and Drop areas overview - HubSpot docs](https://developers.hubspot.com/docs/cms/start-building/building-blocks/drag-and-drop/overview#drag-and-drop-area-elements)

- Template files are always _.html_ files, as for the structure this can vary a bit from theme to theme so you would need to look at one of the ready made templates in the theme for reference.
