You are viewing a plain text version of this content. The canonical link for it is here.
Posted to lokahi-commits@incubator.apache.org by Apache Wiki <wi...@apache.org> on 2008/02/12 18:14:08 UTC

[Lokahi Wiki] Update of "Templating Engine" by JeffFeist

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lokahi Wiki" for change notification.

The following page has been changed by JeffFeist:
http://wiki.apache.org/lokahi/Templating_Engine

New page:
== Creating a new Template Engine ==

 * Create a new class that implements Template Engine.java
 * This class needs to implement 2 methods
  * Collection<String> buildConfs(Object worker) {}
   * build all of the config files for a worker
  * String buildConf(Object[] params) {}
   * builds a specifc config file for a worker
 * Update conf/lokahi.properties to use the new class (lokahi.template.engine=org.apache.lokahi.<template class>)
 * Update conf/lokahi.properties to give examples to users adding the templates (lokahi.template.variables=<example here>)