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

I use content as a key and got double DOMs #86

Open
vagusX opened this issue Sep 26, 2015 · 1 comment
Open

I use content as a key and got double DOMs #86

vagusX opened this issue Sep 26, 2015 · 1 comment

Comments

@vagusX
Copy link

vagusX commented Sep 26, 2015

index.html:

@@include('news/news-content.html', {
    "content": "<h3>123</h3>"
  })

news-content.html

<div class="news-section">
  <div class="section-content">
    @@content
  </div>
</div>

result:

<div class="news-section">
  <div class="section-content">
    <div class="news-section">
      <div class="section-content">
      @@content
      </div>
    </div>
  </div>
</div>

So we can't use 'content' as a key?

@karneaud
Copy link

was wondering the same thing....wanted to include and include of a file snippet as key/ value

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

No branches or pull requests

2 participants