jdan / cleaver

30-second slideshows for hackers
http://jdan.github.io/cleaver
MIT License
4.03k stars 305 forks source link

page number variable #98

Closed utdrmac closed 10 years ago

utdrmac commented 10 years ago

Would like to see a page/slide number variable I can use in my mustache template so I can display the slide number on the screen. Useful when in full screen mode and the URL isn't visible.

jdan commented 10 years ago

Yep, you get this! Just put {{id}} in your slide template. We currently use it to populate the id of the slide, as id="slide-{{id}}".

Let me know if you run into any issues.

utdrmac commented 10 years ago

After some trial and error, this works, but the {{id}} must be within the <div> of the {{slides}} section. Putting the variable inside it's own div, right-bottom page aligned, worked great!

jdan commented 10 years ago

Awesome, glad to hear it.