module Automux::Controller::Support::Rendering
Public Instance Methods
render(view)
click to toggle source
# File lib/automux/controller/support/rendering.rb, line 6 def render(view) path = deduce_full_path(view) render_file(path) end
render_file(path)
click to toggle source
There are two requirements to render a file.
-
@binding
-
file_name
# File lib/automux/controller/support/rendering.rb, line 14 def render_file(path) result = Automux::Library::MiniErb.new(File.read(path)).result(@binding) modified_result = remove_empty_lines(result) environmental_execute modified_result end