require "cgi"
require "prez/assets"
require "prez/error"
module Prez
module Helpers
protected
def html_escape(value)
CGI.escape_html value
end
def slide
concat %{
}
yield
concat %{
}
end
def notes
concat %{}
yield
concat %{
}
end
def javascript(name)
Prez::Assets.javascript name
rescue Prez::Files::MissingError
raise Prez::Error.new("Could not find file: '#{name}.js'")
end
def stylesheet(name)
Prez::Assets.stylesheet name
rescue Prez::Files::MissingError
raise Prez::Error.new("Could not find file: '#{name}.css'")
end
end
end