require 'redcarpet'
require 'cgi'
require 'fileutils'
module Bookingit
class HtmlRenderer < Bookingit::Renderer
include FileUtils
def render_header(text,header_level,anchor)
"#{text}"
end
def render_image(link, title, alt_text)
""
end
def render_doc_header
Views::HeaderView.new(@stylesheets,@theme,@config).render
end
def render_doc_footer
Views::FooterView.new(@chapter,@config).render
end
def render_block_code(code,filename,language)
Views::CodeView.new(code,filename,language,@config).render.strip
end
def css_class(language)
if language.nil? || language.strip == ''
""
else
" class=\"language-#{language}\""
end
end
end
end