| Class | AutomateIt::TemplateManager::BaseDriver |
| In: |
lib/automateit/template_manager/base.rb
|
| Parent: | AutomateIt::Plugin::Driver |
Base class for all TemplateManager drivers.
| default_check | [RW] | Name of default algorithm for performing checks, e.g., :compare |
Return Array of dependencies newer than filename. Will be empty if filename is newer than all of the dependencies.
Render a template specified in the block. It takes the same arguments and returns the same results as the render call.
This method is used by the render methods for different template drivers and provides all the logic for parsing arguments, figuring out if a template should be rendered, what to do with the rendering, etc.
This method calls the supplied block with a hash containing:
The supplied block must return the text of the rendered template.
See the TemplateManager::ERB#render method for a usage example.