# File lib/innate/helper/render.rb, line 117 def render_file(filename, variables = {}) action = Action.create(:view => filename) action.sync_variables(self.action) action.node = self.class action.engine = self.action.engine action.instance = action.node.new action.variables.merge!(variables) yield(action) if block_given? valid_action = action.view || action.method Log.warn("Empty action: %p" % [action]) unless valid_action action.render end