Method: Lookbook::RenderableEntity#template_file_path

Defined in:
lib/lookbook/entities/renderable_entity.rb

#template_file_pathClass

Full path to the component template (if present) or view template/partial.

Returns:

  • (Class)

    The component class



95
96
97
# File 'lib/lookbook/entities/renderable_entity.rb', line 95

def template_file_path
  component? ? Dir.glob("#{directory_path}/#{file_name(true)}.*.erb").first : file_path
end