Revelation provides you with a Rack-powered, HAML-based, Reveal.js presentation in a few simple steps.
gem install revelation
Installation adds a revelation
command that behaves similarly to the rails
command. To get started, do something like this:
revelation new demo && cd demo
revelation present
This will create and open a Reveal.js presentation from scratch. Pretty cool, right?
Usage: revelation new PRESENTATION_NAME_HERE
Creates a new presentation in its own folder.
Usage: revelation present
Runs your presentation in your default browser, preferably at full-screen.
Usage: revelation slide SLIDE_NAME
Creates a new slide and inserts it into the presentation. Edit it by opening slides/SLIDE_NAME.haml
.
Usage: revelation compile
Compiles your presentation into HTML, negating the need for a Rack server.
Once you've run revelation new demo
, you can edit the Demo
presentation. The presentation is organized like so:
config.ru
- the Rackup file used to run your presentationpresentation.rb
- the Ruby file used to configure your presentation's global settingspublic/
- the folder containing your stylesheets and javascriptsjavascripts/
- the folder containing reveal.js and other supporting javscript source filesimages/
- the folder containing any images you want to use in your presentationstylesheets/
- the folder containing your stylesheets
slides/
- the folder containing your presentation slidesintroduction.haml
- the first slide in your presentation
You can use any ruby you want in the HAML slides, just
I dig Reveal.js, but thought it would be a lot nicer to use a simple, HAML-based DSL for editing my slides. So I built this and it works perfectly for me.