Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zetsin opened this issue Sep 23, 2018 · 1 comment
Open

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

zetsin opened this issue Sep 23, 2018 · 1 comment

Comments

@zetsin
Copy link

zetsin commented Sep 23, 2018

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>
@pago pago added the question label Sep 25, 2018
@pago
Copy link
Contributor

pago commented Sep 25, 2018

No, not at the moment. embed allows you do to something similar but without a component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants