Introduction

Custom tags need to be transformed to javascript before the browser can execute them.The riot compiler is designed to transform riot tags into javascript modules.A compiled riot tag will look like this:

  1. export default {
  2. css: `my-tag { color: red; }`, // component css string
  3. template: function() {}, // internal riot template factory function
  4. exports: {}, // component events and lifecycle methods
  5. name: 'my-tag' // component id
  6. }

Each tag file must contain only one tag definition.