Is it possible to get a list of variables inside the template and fill them in using the list? I would like my users to create their templates that means i won't know before hand what variables will be available?
EDIT:
In my template users will decide what gets printed. Such as
$users $latest
but from my application i won't know which variables are used in the template. I would like to get a list such as [users latest] that includes all the variables in the template so that i can fill them in according to the user spec.