debian-mirror-gitlab/lib/banzai.rb

22 lines
484 B
Ruby
Raw Normal View History

2015-12-23 02:04:40 +05:30
module Banzai
def self.render(text, context = {})
Renderer.render(text, context)
end
2016-11-03 12:29:30 +05:30
def self.render_field(object, field)
Renderer.render_field(object, field)
end
2016-08-24 12:49:21 +05:30
def self.cache_collection_render(texts_and_contexts)
Renderer.cache_collection_render(texts_and_contexts)
end
2015-12-23 02:04:40 +05:30
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