Nevermind, looks a lot more than what's in ttree. Andy...
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> David B. Bitton
> Sent: Monday, February 04, 2002 7:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Templates] GD
>
>
> Thanks, that's maked sense. It looks like a couple things
> have come up in regards to ttree as of late (granted, both
> are from myself). Anyway, it appears as if we need to be
> able to embed meta data into a file for use by ttree. That
> being said, Andy, would you like for myself to look into the
> code, or would you like the honors?
>
> >> I was looking at the GD modules and I was puzzled by the
> examples.
> >> If I have a file in my tree which contains GD module code,
> what get's
> >> produced? Is the file that get's created in the dest dir
> animage?
> >> Do I need to wrap the GD directives in a re direct filter? The
> >> examples, though explicit in image creation, are vauge in what
> >> happens after t he template is processed.
> >
> > The examples in the documentation show how to produce images. By
> > default, these get written to where ever the output is going, along
> > with any other output. You therefore need to make sure
> that no output
> > is generated by the rest of the file. The examples in the
> > documentation explicitly write the output to stdout, which you
> > probably don't want to do with ttree.
> >
> > I haven't used ttree, so here's a guess of one way to set
> it up. You
> > could, for example, create a file test.png that contains just this
> > (ie: no other whitespace before the [% ... -%]):
> >
> > [%
> > USE gdc = GD.Constants;
> > USE im = GD.Image(200,100);
> > black = im.colorAllocate(0 ,0, 0);
> > red = im.colorAllocate(255,0, 0);
> > r = im.string(gdc.gdLargeFont, 10, 10, "Large Red Text", red);
> > im.png;
> > -%]
> >
> > Provided you comment out this line in your .ttreerc:
> >
> > copy = \.png$
> >
> > then ttree will process test.png in the source directory
> and produce
> > an image test.png in the destination directory.
> >
> > If ttree did mangling of extension names (not sure if it does) then
> > you could call your source file something like test.png.src
> or similar
> > and have the output go to test.png.
> >
> > Craig
> >
> > _______________________________________________
> > templates mailing list
> > [EMAIL PROTECTED]
> > http://www.template-toolkit.org/mailman/listinfo/templates
>
>
>
> --
> David B. Bitton
> [EMAIL PROTECTED]
>
> Diversa ab illis virtute valemus.
>
>
>
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-> toolkit.org/mailman/listinfo/templates
>