Class: PrelandsRails::CreateSimpleSource::Compile
- Inherits:
-
Object
- Object
- PrelandsRails::CreateSimpleSource::Compile
- Includes:
- Interactor, Interactor::Contracts, AbstractInteractor, Base
- Defined in:
- lib/prelands_rails/create_simple_source/compile.rb,
lib/prelands_rails/create_simple_source/compile/html_compiler.rb
Overview
Из валидных исходников соберёт преленд.
Defined Under Namespace
Classes: HtmlCompiler
Instance Method Summary collapse
Methods included from AbstractInteractor
Instance Method Details
#act ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/prelands_rails/create_simple_source/compile.rb', line 21 def act context[:compiled_htmls] = incoming_html_files.map do |key, content| if NAME_RX =~ key compiled = HtmlCompiler.new(content, index_css, index_js, $1, context.static_js_path).compiled [key, compiled] end end.to_h end |