module Runfile::Renderable
Public Instance Methods
render(view, context: nil)
click to toggle source
# File lib/runfile/concerns/renderable.rb, line 5 def render(view, context: nil) path = "#{base_view_path}/#{view}.gtx" GTX.render_file path, context: context, filename: path end
Private Instance Methods
base_view_path()
click to toggle source
# File lib/runfile/concerns/renderable.rb, line 12 def base_view_path @base_view_path ||= ::File.expand_path '../views', __dir__ end