Riot.js Bug Report Template

HTML

<script src="https://rawgit.com/riot/riot/master/riot.min.js"></script>
<parent-tag show="true">
  <nested-tag></nested-tag>
</parent-tag>

<parent-tag>
  <nested-tag></nested-tag>
</parent-tag>

CSS

body {
  font-family: sans-serif;
}

JavaScript

riot.tag(
	"nested-tag",
  "<div>HELLO WORLD</div>",
  function () {
    this.on("mount", function () {
      console.log("mounting nested-tag", this);
    });
  }
);

riot.tag(
	"parent-tag",
  "<yield if=\"{ show }\"></yield>",
  function () {
  	this.show = (this.opts.show && true) || false;
  	this.on("mount", function () {
    	console.log("mounting parent-tag", this);
	  });
	}
);

riot.mount('*');

setTimeout(function () {
	alert(document.body.innerHTML);
}, 5);