[prev in list] [next in list] [prev in thread] [next in thread]
List: mason
Subject: [Mason] Mason 1.13 <%filter> bug
From: "Adam Roth" <adam () dysphoric ! com>
Date: 2002-08-28 4:48:07
[Download RAW message or body]
I was attempting to use a user-submitted component: sticky.ma \
(http://www.masonhq.com/user/trammell/Sticky/Index)
This fails under Mason 1.13. I did a little experimenting and found that sticky.ma \
works just fine under Mason 1.0. The main bug that I discovered was that I cannot use \
the %ARGS hash in the <%filter> block under Mason 1.13. So:
<%filter>
s{$_}{$ARGS{a}};
</%filter>
will fail under Mason 1.13 (but not 1.0) with:
Error during compilation of /usr/local/apache/htdocs/form2.html:
Global symbol "%ARGS" requires explicit package name
I urge others to try this out and the Mason developers to look into this in the event \
that it is a "real" bug.
http://www.masonhq.com/user/trammell/Sticky/Index
I would appriciate any help in this matter.
Thanks,
Adam Roth
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I was attempting to use a user-submitted component:
sticky.ma (<A
href="http://www.masonhq.com/user/trammell/Sticky/Index">http://www.masonhq.com/user/trammell/Sticky/Index</A>)<BR></FONT><FONT \
face=Arial size=2><BR>This fails under Mason 1.13. I did a little experimenting
and found that sticky.ma works just fine under Mason 1.0. The main bug that
I discovered was that I cannot use the %ARGS hash in the <%filter>
block under Mason 1.13. So:<BR><BR><%filter></FONT></DIV>
<DIV><FONT face=Arial size=2>s{$_}{$ARGS{a}};</FONT></DIV>
<DIV><FONT face=Arial size=2></%filter></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>will fail under Mason 1.13 (but not 1.0)
with:<BR><BR></FONT><FONT face=Verdana size=1>Error during compilation of
/usr/local/apache/htdocs/form2.html:<BR>Global symbol "%ARGS" requires explicit
package name</FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT> </DIV>
<DIV><FONT face=Arial size=2>I urge others to try this out and the Mason
developers to look into this in the event that it is a "real" bug. </FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.masonhq.com/user/trammell/Sticky/Index">http://www.masonhq.com/user/trammell/Sticky/Index</A></FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would appriciate any help in this
matter.<BR><BR>Thanks,<BR>Adam Roth</FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT> </DIV></BODY></HTML>
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic