| Class | AutomateIt::TemplateManager |
| In: |
lib/automateit/template_manager.rb
|
| Parent: | AutomateIt::Plugin::Manager |
Set name of default algorithms to perform checks, e.g., :compare. See the render :check option for list of check algorithms.
Render a template.
You may specify the source and target as arguments or options. For example, render(:file => "input", :to => "output") is the same as render("input", "output").
Options:
For example, if the file my_template_file contains:
Hello <%=entity%>!
You could then execute:
render("my_template_file", "/tmp/out", :check => :compare,
:locals => {:entity => "world"})
And this will create a /tmp/out file with:
Hello world!