Hi all,

I want to write a script that allows me to pass it a template and a
config file, and that fills the template with the data provided in the
config. file. However  I'd like that, if there are any undefined
variables in the template, the scripts asks me for them interactively.

I was considering 2 approaches:

  1. somehow get a list of all the variables inside a template, and ask
     only those not specified on the config. file. 
  2. Try to render the template, and use ComplainingUndefined as the
     undefined_singleton. On error, ask for the proper variable, update
     the template data, rinse and repeat until the template renders fine.

checking the docs. I can't find a proper way to get the info needed for
(1.), and trying (2.) doesn't seem to yield any useful info. about the
name of the missing var. Any hints to do this?

NOTE: please cc me any answer, since I'm not on the mail list

Thanks in advance,

-- 
Javier Rojas

GPG Key ID: 0xA1C57061

Attachment: pgplQvrTaZlcQ.pgp
Description: PGP signature

Reply via email to