<NME> setup.rb
<BEF> # encoding: utf-8

# This hook will be executed in context of current generator object before templater start to generate new files.
# You can update context hash and register hooks. Don't forget to use merge! instead of merge, because you are
# because you are manipulating with one object, rather than returning new one
# Dir.pwd => empty directory where the project will be located

setup do |generator, context|
  #
end
    generator.target = "#{generator.target}.ru"
  end
end

<MSG> Improved templaters

<DFF> @@ -5,6 +5,6 @@
 # because you are manipulating with one object, rather than returning new one
 # Dir.pwd => empty directory where the project will be located
 
-setup do |generator, context|
-  #
+hook do |generator, context|
+  generator.target = "#{generator.target}.ru"
 end

Improved templaters