If you are familiar with the macro facility, you can create macros that validate the
parameters before executing the template. It is also possible to validate the parameters
within the compiled template, using the conditional logic syntax of GTL. For more
information, see Chapter 27, “Using Conditional Logic and Expressions In Your
Templates,” on page 539.
GTL supports user-defined computed expressions within compiled templates. This
means that the inset statistics could have been computed inside the template, eliminating
the need to pass them in with dynamic variables or macro variables. An example of how
to do this is also discussed in Chapter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.