You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Josh Chamas <jo...@chamas.com> on 2004/04/19 19:48:12 UTC

Re: Trouble with the arrow operator("->") in custom tags

Christopher Brown wrote:
> Hi,
>  
> This could be really simple or really easy.
>  
> I want to write a custom tag that renders the content of the tag only if 
> the 'test' argument evaluates to be true.  I want it to work something 
> like this:
>  
> <asp:Test test="$Session->{User}">
>     The Session User Object Exists
> </asp:Test>
>  
>  

You can also try setting:

   PerlSetVar XMLSubsPerlArgs Off

which will then enable <%= %> syntax in XMLSubs like:

  <asp:Test test="<%= $Session->{User} %>">
      The Session User Object Exists
  </asp:Test>

Which will make the use of > safe inside those <%= %> blocks.

Regards,

Josh
________________________________________________________________________
Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org