# frozen_string_literal: true module Crys module CommonParts def webbutton(file:, url:, alt:) full_path = "#{image_dir}/buttons/#{file}" image = ::Crys::ImageProcessor.new(path: full_path, filename: file, width: 88) assets << image code = ERB.new <<~EOF <%=alt%> EOF code.result(binding) end end end