Re: Generating output where lines should start with the % character.
Guido Brugnara <[email protected]> Wed, 03 Dec 2014 18:48:27 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============2482151830572309951== Content-Type: multipart/alternative; boundary="------------010608080104030600070709" This is a multi-part message in MIME format. --------------010608080104030600070709 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 03/12/2014 17:38, Jonathan Swartz wrote: > > On Dec 3, 2014, at 6:19 AM, Guido Brugnara <[email protected] > <mailto:[email protected]>> wrote: > >> On 03/12/2014 13:07, Jozef Mojzis wrote: >>> Need generate an output from an Mason component where the lines should >>> start with the '%' character. >>> >>> >> >> If "\%" is acceptable in your case: >> >> <pre> >> \%there lines start >> % for my $x (1..3) { >> \% this is <% $x %> >> % } >> \%there lines end >> </pre> >> <%filter> >> s/^\\%/%/ >> </%filter> > > > There is also the <%text> section: > > https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/Devel.pod#text > Another variant: <%#%>%etc.etc. Ignored by HTML browser: ​%etc.etc </>%etc.etc. <!-->%etc.etc. bye gdo --------------010608080104030600070709 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> On 03/12/2014 17:38, Jonathan Swartz wrote:<br> <blockquote cite="mid:[email protected]" type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <br> <div> <div>On Dec 3, 2014, at 6:19 AM, Guido Brugnara <<a moz-do-not-send="true" href="mailto:[email protected]">[email protected]</a>> wrote:</div> <br class="Apple-interchange-newline"> <blockquote type="cite">On 03/12/2014 13:07, Jozef Mojzis wrote:<br> <blockquote type="cite">Need generate an output from an Mason component where the lines should <br> start with the '%' character.<br> <br> <br> </blockquote> <br> If "\%" is acceptable in your case:<br> <br> <pre><br> \%there lines start<br> % for my $x (1..3) {<br> \% this is <% $x %><br> % }<br> \%there lines end<br> </pre><br> <%filter><br> s/^\\%/%/<br> </%filter><br> </blockquote> </div> <br> <div><br> </div> <div>There is also the <%text> section:</div> <div><br> </div> <div><a moz-do-not-send="true" href="https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/Devel.pod#text">https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/Devel.pod#text</a></div> <div><br> </div> </blockquote> <br> Another variant:<br> <%#%>%etc.etc.<br> <br> Ignored by HTML browser:<br> &#8203;%etc.etc<br> </>%etc.etc.<br> <!-->%etc.etc.<br> <br> bye<br> gdo<br> <br> <br> </body> </html> --------------010608080104030600070709-- --===============2482151830572309951== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk --===============2482151830572309951== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users --===============2482151830572309951==--