Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Paul] File include in Global Vars?

Quote Reply
Re: [Paul] File include in Global Vars? In reply to
Paul,

Quote:
Yeah but in order for the global to be processed you need to put a tag in your template...there is parse number one.....
Not really. Currently there are unnecessary tags used in the templates such
<%body_table%> and
<%/body_table%>, right?
Yes are right, user would not need to add extra tags, because these are already used in original templates... Wink

The bottom line... No, there are no need to place extra tags into your template, and No there will be no need to parse anything 2x.
In addition I suggested global tag parsing as an option (you can turn it on-off), so if you really hate to place tags into globals, just turn off this option... Wink Or even better, if the default option value is to be turned off.


Quote:
then you are suggesting putting tags into the global which need to be parsed...there is parse number two.
Yes of course.
Because:
a) once there is a need to put something into a global, the global needs a global tag. Now we already have the <%body_table%> tags, so we do not need to add them.
b) once we have a global tag, and we would like to place some tags into that global, we should able to place it there. Therefore global would be need to be parsed for tags (only if global template tag option is turned on).


Quote:
Also how are you going to distinguish between perl globals that don't need parsing and non-perl globals that do?
Are you asking seriously?
Perl globals have the exact syntax... Perl globals Must have the following format:
sub { your code }
So why is a problem for you, to distinguish between perl globals and non-perl globals? Smile

Paul, my opinion is still the same: I think, it is a good idea to implement this feature as I suggested.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread File include in Global Vars? webmaster33 2581 Apr 28, 2002, 4:40 PM
Thread Re: [webmaster33] File include in Global Vars?
Jagerman 2515 Apr 28, 2002, 6:24 PM
Thread Re: [Jagerman] File include in Global Vars?
webmaster33 2471 Apr 29, 2002, 5:13 AM
Thread Re: [webmaster33] File include in Global Vars?
Paul 2469 Apr 29, 2002, 5:43 AM
Thread Re: [Paul] File include in Global Vars?
webmaster33 2467 Apr 29, 2002, 6:15 AM
Thread Re: [webmaster33] File include in Global Vars?
Paul 2443 Apr 29, 2002, 6:56 AM
Thread Re: [Paul] File include in Global Vars?
webmaster33 2428 Apr 29, 2002, 8:25 AM
Post Post deleted by Paul
Paul 2483 Apr 29, 2002, 9:12 AM
Post Re: [Paul] File include in Global Vars?
webmaster33 2438 Apr 29, 2002, 10:01 AM
Thread Re: [webmaster33] File include in Global Vars?
Alex 2410 Apr 29, 2002, 12:01 PM
Thread Re: [Alex] File include in Global Vars?
webmaster33 2396 Apr 29, 2002, 1:49 PM
Thread Re: [webmaster33] File include in Global Vars?
Paul 2405 Apr 29, 2002, 1:54 PM
Thread Re: [Paul] File include in Global Vars?
webmaster33 2454 Apr 29, 2002, 2:10 PM
Thread Re: [webmaster33] File include in Global Vars?
Alex 2398 Apr 29, 2002, 3:23 PM
Post Re: [Alex] File include in Global Vars?
webmaster33 2391 Apr 29, 2002, 4:04 PM