class ViewComponent::Compiler
def compiled_template(file_path)
Experimental RBS support (using type sampling data from the type_fusion
project).
def compiled_template: (String file_path) -> String
This signature was generated using 5 samples from 1 application.
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