Module: MapLibrePreview::Extension::FindTemplate

Defined in:
lib/maplibre-preview.rb

Instance Method Summary collapse

Instance Method Details

#find_template(views, name, engine) {|File.expand_path "#{__dir__}/maplibre-preview/views/#{name}.#{@preferred_extension}"| ... } ⇒ Object

Yields:

  • (File.expand_path "#{__dir__}/maplibre-preview/views/#{name}.#{@preferred_extension}")


23
24
25
26
# File 'lib/maplibre-preview.rb', line 23

def find_template(views, name, engine, &block)
  super
  yield File.expand_path "#{__dir__}/maplibre-preview/views/#{name}.#{@preferred_extension}"
end