⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact a946945396ff6b7d36fcad7f04a28d3f9f1f1387b095b9d8932f466c4001f418:


<!doctype html>

<head>
  <title>Riot requirejs tests</title>

</head>

<body>

  <app></app>

  <script src="vendor/require.js"></script>
  <script type="riot/tag">
    <app>
      <p>{ title }</p>
      this.title = 'hello'
    </app>
  </script>
  <script>
    require(['../dist/riot/riot%2Bcompiler.js'], function(riot) {
      // riot need to be available globally to compile in runtime
      window.riot = riot
      riot.compile(function() {
        riot.mount('app')
      })
    })
  </script>

</body>