Skip to content

Commit

Permalink
Compatibility with Metoer 8.2.0 and iron-router update for blaze
Browse files Browse the repository at this point in the history
  • Loading branch information
IstoraMandiri committed Jul 13, 2014
1 parent 5a93e69 commit eb12ed0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
standard-app-packages
autopublish
insecure
preserve-inputs
reveal-js
coffeescript
iron-router
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.8.2
4 changes: 2 additions & 2 deletions reveal-demo.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if Meteor.isClient

Router.configure autoRender: false
Router.configure layoutTemplate: 'revealLayout'

Router.map ->
@route 'home', path: '/'
Expand All @@ -12,7 +12,7 @@ if Meteor.isClient

Template.menu.rendered = ->
$('.ui.dropdown') .dropdown()
Router.load -> # Change theme/transition using links params (eg. <a href="?theme=...">)
Router.onRun -> # Change theme/transition using links params (eg. <a href="?theme=...">)
Reveal.configure theme: theme if theme=this.params.theme
Reveal.configure transition: transition if transition=this.params.transition

Expand Down
8 changes: 5 additions & 3 deletions reveal-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
<link rel="stylesheet" href="/packages/reveal-js/reveal.js/css/theme/default.css" id="theme"/>
</head>

<body>
<body></body>

<template name="revealLayout">
{{> menu}}
{{> reveal}}
</body>
</template>

<template name="reveal">
<div class="reveal">
<div class="slides">
{{renderRouter}}
{{> yield}}
</div>
</div>
</template>
Expand Down

0 comments on commit eb12ed0

Please sign in to comment.