BigW Consortium Gitlab

banzai.rb 507 Bytes
Newer Older
1 2 3 4 5
module Banzai
  def self.render(text, context = {})
    Renderer.render(text, context)
  end

6 7
  def self.render_field(object, field, context = {})
    Renderer.render_field(object, field, context)
8 9
  end

10 11 12 13
  def self.cache_collection_render(texts_and_contexts)
    Renderer.cache_collection_render(texts_and_contexts)
  end

14 15 16 17 18 19 20 21
  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