Use Standard PageRenderer for S5 Content
From Jason Blevins: use the standard PageRenderer class to render S5 content. This way, WikiWords (etc) are processed in S5 slideshows.
This commit is contained in:
parent
3f5d804c22
commit
54aada824c
4 changed files with 48 additions and 19 deletions
|
@ -63,6 +63,18 @@ class PageRenderer
|
|||
end
|
||||
end
|
||||
|
||||
attr :s5_theme
|
||||
def s5_theme=(s)
|
||||
@s5_theme = s
|
||||
end
|
||||
|
||||
# Renders an S5 slideshow
|
||||
def display_s5
|
||||
@display_s5 ||= render(:mode => :s5,
|
||||
:engine_opts => { :author => @revision.page.author,
|
||||
:title => @revision.page.plain_name}, :renderer => self)
|
||||
end
|
||||
|
||||
# Returns an array of all the WikiIncludes present in the content of this revision.
|
||||
def wiki_includes
|
||||
unless @wiki_includes_cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue