<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="Content-Security-Policy" content="default-src * data: gap: https://ssl.gstatic.com; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'">
<script src="components/loader.js"></script>
<script src="lib/onsenui/js/onsenui.min.js"></script>
<link rel="stylesheet" href="components/loader.css">
<link rel="stylesheet" href="lib/onsenui/css/onsenui.css">
<link rel="stylesheet" href="lib/onsenui/css/onsen-css-components.css">
<link rel="stylesheet" href="css/style.css">
<script>
ons.ready(function () {
console.log("Onsen UI is ready!");
window.myNavigator = document.getElementById("navigator");
});
</script>
</head>
<body>
<ons-navigator id="navigator" animation="slide" page="page1.html"></ons-navigator>
<template id="page1.html">
<ons-page>
<ons-toolbar>
<div class="center">Page1</div>
<div class="right"><ons-toolbar-button onclick="window.myNavigator.pushPage('page2.html')"><ons-icon icon="md-plus"></ons-icon></ons-toolbar-button></div>
</ons-toolbar>
<div id="content-page1" class="content"></div>
<script>
riot.mount(document.getElementById("content-page1"), "page1");
</script>
</ons-page>
</template>
<template id="page2.html">
<ons-page>
<ons-toolbar>
<div class="left"><ons-back-button></ons-back-button></div>
<div class="center">Page2</div>
</ons-toolbar>
<div id="content-page2" class="content"></div>
<script>
riot.mount(document.getElementById("content-page2"), "page2");
</script>
</ons-page>
</template>
<script type="riot/tag" src="tag/page1.tag"></script>
<script type="riot/tag" src="tag/page2.tag"></script>
<script type="text/javascript" src="lib/riotjs/riot+compiler.min.js"></script>
</body>
</html>