Added support for using erg templates

Signed-off-by: Bert Hajee <hajee@moretIA.com>