Gossamer Forum
Home : General : Chit Chat :

Woohoo Part Deux

Quote Reply
Woohoo Part Deux
Template parser this time :)

I've got a bit to go before I catch GT's but this is turning out to be awesome...I'm soooooo happy CoolLaughAngelic

....and only 45 lines Tongue.

Will support:

<%include foo.html%>

<%BLA%>

<%if BAR%> I found BAR <%endif%>

<%if BAR and FOO%> Found FOO and BAR <%endif%>

<%if BAR or FOO%> Found FOO or BAR <%endif%>

<%if BAR == FOO%> FOO equals BAR <%endif%>

<%if BAR eq FOO%> FOO equals BAR <%endif%>

<%if BAR ne FOO%> FOO doesn't equal BAR <%endif%>

<%if BAR != FOO%> FOO doesn't equal BAR <%endif%>

<%if BAR > FOO%> BAR grater than FOO <%endif%>

<%if BAR < FOO%> FOO greater than BAR <%endif%>

<%if BAR gt FOO%> BAR greater than FOO <%endif%>

<%if BAR lt FOO%> BAR less than FOO <%endif%>

....shall I go on?....ok......

<%if BAR%> I found BAR <%else%> No BAR :( <%endif%>

<%if BAR and FOO%> Found FOO and BAR <%else%> I'm bored <%endif%>

<%if BAR or FOO%> Found FOO or BAR <%else%> I'm bored <%endif%>

<%if BAR == FOO%> FOO equals BAR <%else%> I'm bored <%endif%>

<%if BAR eq FOO%> FOO equals BAR <%else%> I'm bored <%endif%>

<%if BAR ne FOO%> FOO doesn't equal BAR <%else%> I'm bored <%endif%>

<%if BAR != FOO%> FOO doesn't equal BAR <%else%> I'm bored <%endif%>

<%if BAR > FOO%> BAR grater than FOO <%else%> I'm bored <%endif%>

<%if BAR < FOO%> FOO greater than BAR <%else%> I'm bored <%endif%>

<%if BAR gt FOO%> BAR greater than FOO <%else%> I'm bored <%endif%>

<%if BAR lt FOO%> BAR less than FOO <%else%> I'm bored <%endif%>

Wooohooooooo

I know it isn't a patch on GT::Template::Parser but I'm so proud of it :)

I'm not being conceited either...hehe

BTW for anyone interested by gran had 20 bags of blood platelets and is feeling a little better. 20 bags? I didn't think you could fit that much in your body :)


Quote Reply
Re: [PaulW] Woohoo Part Deux In reply to
Good news about your gran.
When you do <%include foo.html%>, would foo.html have to be in the same directory as the script, or if its in a sub could you do like <%include /sub/foo.html%>?



Lavon Russell
LookHard Mods
lavon@lh.links247.net
Quote Reply
Re: [Bmxer] Woohoo Part Deux In reply to
It currently works off a templates directory but it is a simple change to get it to work like your example.
Quote Reply
Re: [PaulW] Woohoo Part Deux In reply to
thats really cool... good job. Smile
Lavon Russell
LookHard Mods
lavon@lh.links247.net
Quote Reply
Re: [Bmxer] Woohoo Part Deux In reply to
Thanks, I just need to add a few more features then I may send it off to CPAN and watch it get rejected.
Quote Reply
Re: [PaulW] Woohoo Part Deux In reply to
umm, yep! ;-)

- wil
Quote Reply
Re: [Wil] Woohoo Part Deux In reply to
I guess....I...I could only dream of meeting your standard.....

Please spare me o great one.
Quote Reply
Re: [PaulW] Woohoo Part Deux In reply to
Thank you. Your kind words will be engraved on my heart forever.

tr/Larry/Paul/;

:-)

- wil
Quote Reply
Re: [PaulW] Woohoo Part Deux In reply to
Quote:
BTW for anyone interested by gran had 20 bags of blood platelets and is feeling a little better. 20 bags? I didn't think you could fit that much in your body :)

Erm, didnt even know there was anything wrong with your gran. What was up with her? Unsure

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates