class Lookbook::Preview

def load_previews

def load_previews
  @errors = []
  preview_files.each do |file|
    require_dependency file[:path]
  rescue SyntaxError, StandardError => exception
    @errors.push(
      Lookbook::Error.new(exception,
        title: "Preview #{exception.class}",
        file_name: file[:rel_path],
        file_path: file[:path])
    )
  end
end