SimpleTemplater.scope(:rango) do root = File.join(File.dirname(__FILE__)) Dir["#{root}/stubs/*"].each do |path| SimpleTemplater.register(:rango, File.basename(path).to_sym, File.expand_path(path)) end end