class FilesystemLoader implements LoaderInterface
FilesystemLoader is a loader that read templates from the filesystem.
Methods
__construct(FileLocatorInterface $locator) Constructor. | ||
Storage|bool | load(TemplateReferenceInterface $template) Loads a template. | |
bool | isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. |
Details
__construct(FileLocatorInterface $locator)
Constructor.
Storage|bool load(TemplateReferenceInterface $template)
Loads a template.
bool isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.
Please login to continue.