[REBOL] Re: Replacing placeholders?
From: carlos:lorenz:gm:ail at: 8-Aug-2007 15:15
I am afraid a cannot go further on advising you since I am not a heavy user
Anyway are you using COMPOSE to evaluate data and surrounding them with
parens as Tim said?
>> Timīs code
;; Process records
foreach record records[
;; Use 'compose to evaluate the code and data
;; inside of the parens in the 'page block
page: compose/deep build-page record
;; append as a block
append/only document page
2007/8/7, Kai Peters <kpeters-otaksoft.com>:
> Carlos ~
> thank you so much for this - this would have been the next step for me
> to wrestle with!
> Now that I have seen this code, my ultimate goal is to be able to
> do this:
> Have the actual "page content" made "load"able from an external file
> In Tim's code this would be this section (I believe):
> LEFT ALIGN
> (blue-font) "First Name: "
> (black-font) (record/first_name) newline
> (blue-font) "Last Name: "
> (black-font) (record/last_name) newline
> and pass it on to build-page as an additional parameter. This
> should add a lot of flexibility as it separates the actual PDF
> definitions from the code.
> I have just tried in vain to achieve this as I somehow always
> end up with empty PDFs or worse....
> Would you be able to advise me once more?
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
Unidade Lorenz Ltda
(11) 4034 1971