lib/batcave/dsl.rb in batcave-0.0.4 vs lib/batcave/dsl.rb in batcave-0.0.5
- old
+ new
@@ -148,9 +148,10 @@
originalpath = source[@sourcedir.length + 1 .. -1]
localpath = File.join(path(@environment), target[@sourcedir.length + 1 .. -1])
if localpath =~ /\.erb$/
localpath = localpath[0...-4]
+ originalpath = originalpath[0...-4]
use_erb = true
else
use_erb = false
end