Class | AutomateIt::TemplateManager |
In: |
lib/automateit/template_manager.rb
|
Parent: | AutomateIt::Plugin::Manager |
Get name of default algorithm for performing checks.
# File lib/automateit/template_manager.rb, line 47 def default_check() dispatch() end
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!
# File lib/automateit/template_manager.rb, line 44 def render(*options) dispatch(*options) end