Stefan Lesicnik wrote:
Hi Guys,
I am trying to do the following, and im not sure how to deal with a blob of
text.
I have the following file i am using as a template
%%NAME%%
%%NUMBER%%
%%REPORT%%
and i have a corresponding file with values
name="bob"
number="123"
report="report is long
and s
Stefan,
Have you considered a templating engine such as Jinja or Cheetah?
http://jinja.pocoo.org/2/
www.cheetahtemplate.org/
They should be able to handle a lot of the parsing and pairing of
variables in a template that you're attempting. Basically, you use
template syntax (as you seem to have c
Hi Guys,
I am trying to do the following, and im not sure how to deal with a blob of
text.
I have the following file i am using as a template
%%NAME%%
%%NUMBER%%
%%REPORT%%
and i have a corresponding file with values
name="bob"
number="123"
report="report is long
and spans multiple
lines. It a