walkthrough

If using browserify with riotify

import View from 'frontend-view';
import tag from '../path/to/a.tag';

const SomeView = View({
  tag
});

if not using browserify

View.riot.compile('/tags/hello-world.tag', function() {
  // the loaded tags are ready to be used
  window.UserView = View({
    tag: 'hello-world'
  });
});

for a full specification of the View class please refer to it's documentation.

Rik Hoffbauer 2015
Documentation generated by JSDoc 3.4.0 on 2015-12-03T14:54:22+01:00