Re: Generating output where lines should start with the % character.
Jonathan Swartz <[email protected]> Wed, 3 Dec 2014 08:38:20 -0800
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
--===============6587072007833227925== Content-Type: multipart/alternative; boundary="Apple-Mail=_AAB68658-BEF4-403B-9EF6-1FBF2283011E" --Apple-Mail=_AAB68658-BEF4-403B-9EF6-1FBF2283011E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Dec 3, 2014, at 6:19 AM, Guido Brugnara <[email protected]> wrote: > On 03/12/2014 13:07, Jozef Mojzis wrote: >> Need generate an output from an Mason component where the lines = should=20 >> start with the '%' character. >>=20 >>=20 >=20 > If "\%" is acceptable in your case: >=20 > <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 --Apple-Mail=_AAB68658-BEF4-403B-9EF6-1FBF2283011E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space;"><br><div><div>On Dec 3, 2014, at 6:19 AM, Guido = Brugnara <<a href=3D"mailto:[email protected]">[email protected]</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><blockquote = type=3D"cite">On 03/12/2014 13:07, Jozef Mojzis wrote:<br><blockquote = type=3D"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 = href=3D"https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/De= vel.pod#text">https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Ma= son/Devel.pod#text</a></div><div><br></div></body></html>= --Apple-Mail=_AAB68658-BEF4-403B-9EF6-1FBF2283011E-- --===============6587072007833227925== 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 --===============6587072007833227925== 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 --===============6587072007833227925==--