debian-mirror-gitlab/lib/banzai.rb
2018-03-17 18:26:18 +05:30

21 lines
507 B
Ruby

module Banzai
def self.render(text, context = {})
Renderer.render(text, context)
end
def self.render_field(object, field, context = {})
Renderer.render_field(object, field, context)
end
def self.cache_collection_render(texts_and_contexts)
Renderer.cache_collection_render(texts_and_contexts)
end
def self.render_result(text, context = {})
Renderer.render_result(text, context)
end
def self.post_process(html, context)
Renderer.post_process(html, context)
end
end