Class: Avm::EacWebappBase0::FileFormats::Html

Inherits:
Avm::EacGenericBase0::FileFormats::Base
  • Object
show all
Defined in:
lib/avm/eac_webapp_base0/file_formats/html.rb

Constant Summary collapse

VALID_BASENAMES =
%w[*.html *.html.erb].freeze
VALID_TYPES =
[].freeze

Instance Method Summary collapse

Instance Method Details

#file_apply(path) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/avm/eac_webapp_base0/file_formats/html.rb', line 13

def file_apply(path)
  input = ::File.read(path)
  temppath = tempfile_path
  ::File.open(temppath, 'w') do |output|
    beautify path, input, output
  end
  ::FileUtils.mv(temppath, path)
  super(path)
end