O'Reilly logo

PROC TEMPLATE Made Easy by Kevin Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Template Structure

Regardless of the statements and options chosen for each template language, they all have essentially the same structure. This structure can be thought of as simply a bag of objects and options. Objects are delimited by define and end statements; options are key-value pairs separated by an equals sign (=), where the name of the option is on the left-hand side and the value is on the right. The objects can in turn contain other objects and options depending on what is defined by the template language that is being parsed. Some templates do not allow nested objects; others allow infinitely nested objects. Either way, these objects can always be thought of as a bag of unordered objects and options. Let’s look at an example. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required