lib/vfs/entries/file.rb in vfs-0.1.1 vs lib/vfs/entries/file.rb in vfs-0.2

- old
+ new

@@ -179,7 +179,18 @@ end def move_to! to, options = {} options[:override] = true move_to to, options end + + + # + # Extra Stuff + # + def render *args + require 'tilt' + + args.unshift Object.new if args.size == 1 and args.first.is_a?(Hash) + Tilt::ERBTemplate.new(path).render *args + end end end \ No newline at end of file