lib/bluedoc/html.rb
# render html with BlueDoc HTML pilepine
# opts:
# - format: [html, markdown, sml]
# - public: generate attachment for public
render html with BlueDoc HTML pilepine
opts:
format: [html, markdown, sml]
public: generate attachment for public
render html with BlueDoc HTML pilepine opts : format : [ html markdown sml ] public : generate attachment for public
def render_without_cache(body, opts = {})
        opts[:format] ||= "html"
        result = case opts[:format].to_s
        when "sml"
          SmlPileline.call(body)[:output].inner_html
        when "markdown"
          MarkdownPileline.call(body)[:output].inner_html
        else
          body
        end
        result = public_attachment(result) if opts[:public]
        ::Sanitize.fragment(result, BlueDoc::Sanitize::DEFAULT)
      end
def render_without_cache ( body , opts = { } ) opts [ :format ] ||= "html" result = case opts [ :format ] . to_s when "sml" SmlPileline . call ( body ) [ :output ] . inner_html when "markdown" MarkdownPileline . call ( body ) [ :output ] . inner_html else body end result = public_attachment ( result ) if opts [ :public ] :: Sanitize . fragment ( result , BlueDoc :: Sanitize :: DEFAULT ) end
render html with BlueDoc HTML pilepine
opts:
 format: [html, markdown, sml]
 public: generate attachment for public
render html with BlueDoc HTML pilepine opts : format : [ html markdown sml ] public : generate attachment for public
body
<not_specific>
opts
<not_specific>