class Preseason::Config::Templating

Attributes

library[RW]

Public Instance Methods

ask_user() click to toggle source
# File lib/preseason/config/templating.rb, line 8
def ask_user
  if yes? "Would you like to use Slim templating language? [y/n]"
    self.library = :slim
  elsif yes? "Would you like to use HAML instead? [y/n]"
    self.library = :haml
  end
end
haml?() click to toggle source
# File lib/preseason/config/templating.rb, line 20
def haml?
  library == :haml
end
slim?() click to toggle source
# File lib/preseason/config/templating.rb, line 16
def slim?
  library == :slim
end