<%doc>
Am I allowed to do this:
</%doc>
% if ($thing eq 'somecondition') {
<&| '/some/piped/component/', %args >
%}


<table>
<!-- other html goes here -->
</table>

% if ($thing eq 'somecondition') { # same condition as above
</&>
% }

<%doc>
in other words I'm trying to pipe the content through a component if some
condition is true and non pipe it if it's not.

So far I get a syntax error about a semicolon missing runaway line etc..

If there is a more appropriate way to do this, let me know.. The whole point 
is to not have to repeat the <table>...</table> section in a piped section and 
then again in a non-piped section.. also what if I wanted to use different 
pipes based on several conditions you can easily visualize how convoluted the 
code can get.

Thanks,


Carl
</%doc>

Attachment: smime.p7s
Description: S/MIME cryptographic signature





**********************************************************

MLB.com: Where Baseball is Always On
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to