Sha256: e976b9225a7e89d7a3baec12b2d68fc660b9d7ee33b6ccf80c2502650c6942a2
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
say "\nWhich Template Engine would you like to use?\n", Thor::Shell::Color::BLUE template_engine_options = { 'Option' => 'Template Engine', '1' => 'Haml', '2' => 'Slim', '3' => 'ERB', } print_table template_engine_options.to_a, :ident => 4 template_engine_selection = ask("\nOption: ", Thor::Shell::Color::BLUE) if template_engine_selection.present? templater.template_engine.type = template_engine_options[template_engine_selection].downcase.to_sym end $stdout << "\n\n" apply templater.recipe('haml') if templater.template_engine.haml? apply templater.recipe('slim') if templater.template_engine.slim?
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_templater-0.2.1 | lib/template_framework/recipes/template_engine.rb |
rails_templater-0.2.0 | lib/template_framework/recipes/template_engine.rb |