# Module: Tgtemplate

# Tgtemplate (Template)

Tgtemplate provides the wrapper for the FreeMarker template engine JAR file.

# Child modules and classes

Module Tgtemplate::Fm
Class Tgtemplate::Template

# Public Class Methods

### display (template, hashdata=nil)

Display a template file. If a hash is passed in, then variables will be substituted by FreeMarker.

Show source...

         # File bbs/lib/tgtemplate.rb, line 169
    169:   def Tgtemplate::display(template, hashdata=nil)
    170:     t = Tgtemplate::Template.new(template)
    171:     if hashdata == nil
    172:       t.render()
    173:     else
    174:       t.render(hashdata)
    175:     end
    176:     # Ensure ANSI colors are reset after template display.
    177:     print ANSI_RESET
    178:   end