def glob!(dir = nil, template_extensions = %w(rb css js erb html yml Rakefile TODO LICENSE README), options={})
::Dir[::File.join(source_root, dir.to_s, '**/*')].each do |action|
unless ::File.directory?(action)
action = action.sub("#{source_root}/", '')
if template_extensions.include?(::File.extname(action.sub(/\.%.+%$/,''))[1..-1]) or template_extensions.include?(::File.basename(action))
template(action.downcase.gsub(/[^a-z0-9]+/, '_').to_sym, action, action)
else
file(action.downcase.gsub(/[^a-z0-9]+/, '_').to_sym, action, action)
end
end
end
end