Re[2]: [FMPP] any way to flag files that where replacements occured ?
Brought to you by:
ddekany
|
From: Daniel D. <dd...@fr...> - 2004-10-28 21:24:13
|
Thursday, October 28, 2004, 9:56:39 PM, Erich Oliphant wrote:
> Hmm,
> Yeah, I looked at the Freemarker Template class, nothing there to go
> on. Is there somewhere in FMPP that we could perhaps compare the src
> to the destination file?
Do you want to detect if a variable is actually accessed during template
execution, or simply you want to know if a file contains any
interpolations (${...})? The latest can be find out from the Template
object (it has an undocumented API for traversing the syntax tree).
However, FMPP has no built-in hook that you could utilize. But of course
it's open source so you can hack it... And, in mid november I hope to
really finish something that I have to do nowadays, and then I will have
time to continue my opens source activities, but until that do not
expect any new FMPP features from me... in November we will see what
features will be added, etc.
> Daniel Dekany wrote:
>
>>Thursday, October 28, 2004, 7:33:48 PM, Erich Oliphant wrote:
>>
>>
>>
>>>Hi,
>>>I am using FMPP as the basis of an installer for our system. I was
>>>wondering if there's a way to find out (maybe via a callback?) which
>>>files FreeMarker/FMPP actually performed replacements in, and as a bonus
>>>which variables were replaced.
>>>
>>>
>>
>>No way... (At least yet...)
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
|