Class PageTemplate::FileSource
In: lib/PageTemplate/parser.rb
Parent: Source

FileSource provides access to files within the ‘include_paths’ argument.

It attempts to be secure by not allowing any access outside of The directories detailed within include_paths

Methods

cache   get   get_filename   new  

Attributes

paths  [RW] 

Public Class methods

initialize looks for the following in the args Hash:

 * include_paths = a list of file paths
 * include_path  = a single file path string
                   (kept for backwards compatibility)

Public Instance methods

Return the contents of the file name, which must be within the include_paths.

[Validate]