module PreviewHelper

def prism_language_name_by_template_path(template_file_path:)

:nocov:
def prism_language_name_by_template_path(template_file_path:)
  language = template_file_path.gsub(".html", "").split(".").last
  return FALLBACK_LANGUAGE unless AVAILABLE_PRISM_LANGUAGES.include? language
  language
end