# Slide Show (S9) Gem Updated (v0.7.5) - Supports Plugins/Helpers; New Built-in Helpers Include conte

**URL:** <https://www.ruby-forum.com/t/slide-show-s9-gem-updated-v0-7-5-supports-plugins-helpers-new-built-in-helpers-include-conte/161301>\
**Category:** Ruby\
**Created:** [February 25, 2009, 9:01am UTC](https://www.ruby-forum.com/t/slide-show-s9-gem-updated-v0-7-5-supports-plugins-helpers-new-built-in-helpers-include-conte/161301 "2009-02-25T09:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerald\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b2d939/32.png) [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Post date:** [February 25, 2009, 9:01am UTC](https://www.ruby-forum.com/t/slide-show-s9-gem-updated-v0-7-5-supports-plugins-helpers-new-built-in-helpers-include-conte/161301/1 "2009-02-25T09:01:25Z")

</div>

Hello,

I uploaded a new slideshow gem version (that is, v0.7.5).

== What’s Slides Show (S9)?

A Ruby gem that lets you create slide shows and author slides in  
plain text using a wiki-style markup language that’s easy-to-write and  
easy-to-read. More @ [http://slideshow.rubyforge.org](http://slideshow.rubyforge.org)

== What’s new?

I added support for plugins and helpers. Now you can use Embedded  
Ruby (ERB) in your slide source e.g.

h1. Today’s Date

\<%= Time.now %\>

If you want to use your own helpers put your code in the ./lib folder  
(or any subfolders) and your code gets loaded on startup. For now the  
built-in helpers include:

- include # Let’s you include text. e.g.

\<%= include ‘help.txt’ %\>

- content\_for # Lets you add content to your templates from your  
source a la Rails

In your slide source use:

\<% content\_for :head do %\>

```
your content here e.g. more meta tags; javascript includes etc.

```

\<% end %\>

In your template use:

\<%= content\_for :head %\> and it will include the marked content  
from your source. Note, you can use :foo, :bar or whatever key you  
want instead of :head and also note a la Rails you can use the same  
key as many times as you want. The new content just gets added.

Finally I added support for (private) multi-line comments using  
**SKIP** / **END**. If you want to skip content in your source just  
enclose it with

**SKIP**

not yet ready or private notes/comments

**END**

As a shortcut if you just use **END** (without **SKIP** ) (Ruby-like)  
it will skip everything from **END** until the end of the file.

That’s it. I will add a couple of more built-in helpers in the next  
days and weeks and you’re, of course, more than welcome and encouraged  
to create your own helpers. Questions and comments welcome.

Cheers.
