Discussion:
[htmltmpl] Suggested Addition
Alan Laas
2010-07-02 15:52:10 UTC
Permalink
One thing that would be nice to have is a <TMPL_ELSIF> tag. I know you
can accomplish the same thing with something like this but it just gets
cumbersome to nest them if you have a long string:

<TMPL_IF>

<TMPL_ELSE>

<TMPL_IF>

<TMPL_ELSE>

</TMPL_IF>
</TMPL_IF>
Mathew Robertson
2010-07-05 00:16:13 UTC
Permalink
If you have a look at the H::T forum history, you can find many examples of
Post by Alan Laas
One thing that would be nice to have is a <TMPL_ELSIF> tag. I know you
can accomplish the same thing with something like this but it just gets
<TMPL_IF>
<TMPL_ELSE>
<TMPL_IF>
<TMPL_ELSE>
</TMPL_IF>
</TMPL_IF>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Html-template-users mailing list
https://lists.sourceforge.net/lists/listinfo/html-template-users
Alex Teslik
2010-07-05 15:23:05 UTC
Permalink
I would love to see this feature. Supporting TMPL_IF and supporting TMPL_ELSE but not supporting
TMPL_ELSIF seems very bizarre to me. Just sayin.

Mat, if you could share your patch that adds this feature that would be great.

Thanks,
Alex
Post by Alan Laas
One thing that would be nice to have is a <TMPL_ELSIF> tag. I know you
can accomplish the same thing with something like this but it just gets
<TMPL_IF>
<TMPL_ELSE>
<TMPL_IF>
<TMPL_ELSE>
</TMPL_IF>
</TMPL_IF>
--------------------------------------------------------------------------
----
Post by Alan Laas
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Html-template-users mailing list
https://lists.sourceforge.net/lists/listinfo/html-template-users
Justin Skazat
2010-07-05 20:49:46 UTC
Permalink
Post by Alex Teslik
Mat, if you could share your patch that adds this feature that would be great.
This has it:

http://search.cpan.org/~tinita/HTML-Template-Compiled-0.94/lib/HTML/Template/Compiled.pm#ADDITIONAL_FEATURES

Justin
Post by Alex Teslik
I would love to see this feature. Supporting TMPL_IF and supporting TMPL_ELSE but not supporting
TMPL_ELSIF seems very bizarre to me. Just sayin.
Mat, if you could share your patch that adds this feature that would be great.
Thanks,
Alex
Post by Alan Laas
One thing that would be nice to have is a <TMPL_ELSIF> tag. I know you
can accomplish the same thing with something like this but it just gets
<TMPL_IF>
<TMPL_ELSE>
<TMPL_IF>
<TMPL_ELSE>
</TMPL_IF>
</TMPL_IF>
--------------------------------------------------------------------------
----
Post by Alan Laas
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Html-template-users mailing list
https://lists.sourceforge.net/lists/listinfo/html-template-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Html-template-users mailing list
https://lists.sourceforge.net/lists/listinfo/html-template-users
Michael Peters
2010-07-06 01:28:15 UTC
Permalink
Post by Justin Skazat
Post by Alex Teslik
Mat, if you could share your patch that adds this feature that would be great.
http://search.cpan.org/~tinita/HTML-Template-Compiled-0.94/lib/HTML/Template/Compiled.pm#ADDITIONAL_FEATURES
But it doesn't have full query support.
--
Michael Peters
Plus Three, LP
Loading...