Public Instance methods
timestamp_path(file)
Return a path to the static file that could be served by r.timestamp_public. This does not check the file is inside the directory for performance reasons, so this should not be called with untrusted input.
[show source]
# File lib/roda/plugins/timestamp_public.rb 60 def timestamp_path(file) 61 mtime = File.mtime(File.join(self.class.public_root, file)) 62 "/#{self.class.timestamp_public_prefix}/#{sprintf("%i%06i", mtime.to_i, mtime.usec)}/#{file}" 63 end