class ViewComponent::Compiler
def compiled_template(file_path)
def compiled_template(file_path) handler = ActionView::Template.handler_for_extension(File.extname(file_path).delete(".")) template = File.read(file_path) compile_template(template, handler) end