Class Jekyll::StaticFile
In: lib/jekyll/static_file.rb
Parent: Object

Methods

destination   modified?   mtime   new   path   reset_cache   write  

Public Class methods

Initialize a new StaticFile.

  +site+ is the Site
  +base+ is the String path to the <source>
  +dir+ is the String path between <source> and the file
  +name+ is the String filename of the file

Returns <StaticFile>

Reset the mtimes cache (for testing purposes).

Returns nothing.

Public Instance methods

Obtain destination path.

  +dest+ is the String path to the destination dir

Returns destination file path.

Is source path modified?

Returns true if modified since last write.

Obtain mtime of the source path.

Returns last modifiaction time for this file.

Obtains source file path.

Returns source file path.

Write the static file to the destination directory (if modified).

  +dest+ is the String path to the destination dir

Returns false if the file was not modified since last time (no-op).

[Validate]