Method: Talkable::SharedGeneratorMethods#template_lang

Defined in:
lib/talkable/generators/shared_generator_methods.rb

#template_langObject



2
3
4
5
6
7
8
9
10
# File 'lib/talkable/generators/shared_generator_methods.rb', line 2

def template_lang
  @template_lang ||= if options[:haml]
   'haml'
  elsif options[:slim]
   'slim'
  else
   Rails::Generators.options[:rails][:template_engine].to_s.downcase
  end
end