diff --git a/src/main.js b/src/main.js index 7c4a456..8187704 100644 --- a/src/main.js +++ b/src/main.js @@ -2,13 +2,23 @@ import * as riot from "riot"; import app from "./components/app.riot"; const main = { + // start-up actions here init() { - // start-up actions here + // install plugins + this.plugins(); // mount components this.mount(); }, + // extend functionality + plugins() { + riot.install((component) => { + // add your own features here + component.version = "3.0.0"; + }); + }, + mount() { // register core app component riot.register("app", app);