class ActionView::RenderParser::PrismRenderParser
def render_call_template(node)
and return the template name and whether or not it is an object
Accept the node that is being passed in the position of the template
def render_call_template(node) object_template = false template = case node.type when :string_node path = node.unescaped path.include?("/") ? path : "#{directory}/#{path}" when :interpolated_string_node node.parts.map do |node| case node.type when :string_node node.unescaped when :embedded_statements_node "*" else return end end.join("") else dependency = case node.type when :class_variable_read_node node.slice[2..] when :instance_variable_read_node node.slice[1..] when :global_variable_read_node node.slice[1..] when :local_variable_read_node node.slice when :call_node node.name.to_s else return end "#{dependency.pluralize}/#{dependency.singularize}" end [template, object_template] end