Class: Codex::AddTitleSlides

Inherits:
PostProcessor show all
Defined in:
lib/codex/post_processors/02_add_title_slides.rb

Overview

This allows you to create title slides in the middle of presentations, using:

h1(slide0). Slide that only has a title

This is used by the @rake all@ task, that will build the @html/all.html@ file.

Instance Attribute Summary

Attributes inherited from PostProcessor

#html

Instance Method Summary collapse

Methods inherited from PostProcessor

#initialize, register

Constructor Details

This class inherits a constructor from Codex::PostProcessor

Instance Method Details

#processObject



8
9
10
# File 'lib/codex/post_processors/02_add_title_slides.rb', line 8

def process
  @html = @html.gsub(/<div class="slide">\s*<h1 class="slide0"/m, %{<div class="title slide">\n<h1})
end