README.textile in simple-templater-0.1.pre vs README.textile in simple-templater-0.2.pre
- old
+ new
@@ -31,14 +31,14 @@
You would probably want to use simple templater for your own generators, here is how:
<pre>
require "simple-templater"
-templater = SimpleTemplater.new(:rango)
+templater = SimpleTemplater.new(:rango, SimpleTemplater.logger)
if defined?(Gem) # try to find generators installed as gems
templater.discovery!
else
- warn "Running without RubyGems which means SimpleTemplater won't be able to find generators distributed as a Gems."
+ SimpleTemplater.logger.warn "Running without RubyGems which means SimpleTemplater won't be able to find generators distributed as a Gems."
# register generators just for rango
load File.join(File.dirname(__FILE__), "..", "simple-templater.scope")
end
templater.run(ARGV.shift) # run generator from ARGV, for example "project"
</pre>