HTML_Flexy_Template - attribute problem?
| From: | mitchell perilstein | Date: | Fri, 29 Aug 2003 17:59:06 +0000 |
| Subject: | HTML_Flexy_Template - attribute problem? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7485@lists.php.net to get a copy of this message | ||
Hi guys,
Flexy (recent cvs) doesn't seem to like {} substitutions or php <? ?>
escapes inside html tags in a template. If they are inside attribute
foo="" value strings, no problem. It doesn't seem to matter which tag,
same behavior with made-up tag names. Also doesn't seem to matter if
flexy:ignore is used.
This is a problem if you want to add your own attributes to arbitrary
tags.
<!-- okay -->
<input type="checkbox" name="C1" value="{C1:h}">
<!-- okay -->
<input type="checkbox" name="C2" value="<? echo $C2;
?>">
<!-- error: unexpected '{' -->
<input type="checkbox" name="C3" {C3:h}>
<!-- error: unclosed tags not supported -->
<input type="checkbox" name="C4" <? echo $C4; ?> >
--
Mitchell Perilstein
mitch at enetis dot net
www.enetis.net/~mitch