stephanh/DatabaseMailer — Issue #5: Establish 3 layers of template hierarchy 
Author: stephanh
Created: 2011-12-08 11:44:01+00:00
State: open

There should be 3 layers of template hierarchy. The first one is the general main template, specified in the general section, in side this template 1 email template is embedded, inside this template 1 or multiple query templates are embedded.

First a lookup is done to find a tag matching the query name if that is found its content is replaced with the query. Otherwise, a lookup is done for the tag "queries" and its content is replaced with the query results.