Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title></title>
  <script src="//cdn.bootcss.com/riot/2.2.4/riot+compiler.min.js"></script>
  
</head>
<body>
  <div id="test">
    <my-tag-false></my-tag-false>
    <my-tag-true></my-tag-true>
    
  </div>
  <script>
    riot.tag('my-tag-false', '<div time="{false}"></div>', function() {})
    riot.tag('my-tag-true', '<div time="{true}"></div>', function() {})
    
    riot.mount('*')
    var test = document.getElementById('test')
    console.log(test.innerHTML)     
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers