Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Q: Is it possible to use block inside mount #66

@zetsin

Description

@zetsin

example:

<div id="app">
  {% mount 'button.js' with {} %}
    {% block startAdornment %}
      <div .../>
    {% endblock %}
    {% block children %}
      <div .../>
    {% endblock %}
    {% block endAdornment %}
      <div .../>
    {% endblock %}
  {% endmount %}
</div>

or pass another component inside:

<div id="app">
  {% mount 'container.js' %}
    {% block children %}
      {% mount 'item.js' with {...} %}
      {% mount 'item.js' with {...} %}
      {% mount 'item.js' with {...} %}
    {% endblock %}
  {% endmount %}
</div>

or without block:

<div id="app">
  {% mount 'container.js' %}
    {% mount 'item.js' with {...} %}
    {% mount 'item.js' with {...} %}
    {% mount 'item.js' with {...} %}
  {% endmount %}
</div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions