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(body, opts = {})
        return "" if body.blank?
        cache_version = opts[:format].to_s == "sml" ? "#{BlueDoc::SML::VERSION}/v1.2" : "v1.3"
        Rails.cache.fetch(["bluedoc/html", cache_version, Digest::MD5.hexdigest(body), opts]) do
          render_without_cache(body, opts)
        end
      end
def render ( body , opts = { } ) return "" if body . blank? cache_version = opts [ :format ] . to_s == "sml" ? "#{BlueDoc::SML::VERSION}/v1.2" : "v1.3" Rails . cache . fetch ( [ "bluedoc/html" , cache_version , Digest :: MD5 . hexdigest ( body ) , opts ] ) do render_without_cache ( body , opts ) end 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>