Class: Templater::Actions::File
- Inherits:
-
Object
- Object
- Templater::Actions::File
- Defined in:
- lib/middleman/templater+dynamic_renderer.rb
Overview
Monkey-patch to use a dynamic renderer
Instance Method Summary collapse
Instance Method Details
#identical? ⇒ Boolean
5 6 7 8 9 10 11 12 |
# File 'lib/middleman/templater+dynamic_renderer.rb', line 5 def identical? if exists? return true if File.mtime(source) < File.mtime(destination) FileUtils.identical?(source, destination) else false end end |