Text Template Example Output

lua-users home
wiki

==============================================================================

you can access variables: this is v

or environment variables: /home/pshook

you can call functions: A, B, C, D, E
this list has 5 elements
   =====
   ABCDE
   =====

or evaluate code inline
      list[1] = A
      list[2] = B
      list[3] = C
      list[4] = D


you can access global variables:
This example is from Mark J. Dominus at http://perl.plover.com/

The Lord High Chamberlain has gotten 5
things for me this year.

That is 3 more than he gave me last year.

values can have other variables: Mark J. Dominus made Text::Template.pm
==============================================================================

Go back to TextTemplate


RecentChanges · preferences
edit · history
Last edited November 25, 2001 4:19 pm GMT (diff)