Generating output where lines should start with the % character.
Jozef Mojzis <[email protected]> Wed, 3 Dec 2014 13:07:54 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CA+2UTOo-Oc2OqGOueqZWWV+fNaQx1Fei30-dEEsv4VZYS72wEg@mail.gmail.com> |
--===============1814435429955256040==
Content-Type: multipart/alternative; boundary=047d7b6046b494e74405094eb186
--047d7b6046b494e74405094eb186
Content-Type: text/plain; charset=UTF-8
Need generate an output from an Mason component where the lines should
start with the '%' character.
Because the '%<space>' at the beginning of the lines are executed as perl
lines, currently I'm using
<% $perc %> the remaining content of the line.
and the $perc is defined in the %init section as my $perc = '%';
The above works, but for many lines it is an terrible solution. Is it
possible somewhat generate Mason output where some lines contains the '%'
character at the beginning of the line?
If currently not, would be nice to have in the Mason syntax the double %%
(like in the printf), what would be simply copied to the output as one '%',
e.g. the following
%%there lines start
% for my $x (1..3) {
%% this is <% $x %>
% }
%%there lines end
should ouput
%there lines start
% this is 1
% this is 1
% this is 2
%there lines end
rgds,
t.
--047d7b6046b494e74405094eb186
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Need generate an output from an Mason component where the =
lines should start with the '%' character.<div><br></div><div>Becau=
se the '%<space>' at the beginning of the lines are executed =
as perl lines, currently I'm using<div><br></div><div><% $perc %>=
the remaining content of the line.</div><div><br></div><div>and the $perc =
is defined in the %init section as my $perc =3D '%';</div><div><br>=
</div><div>The above works, but for many lines it is an terrible solution. =
Is it possible somewhat generate Mason output where some lines contains the=
'%' character at the beginning of the line?</div><div><br></div><d=
iv>If currently not, would be nice to have in the Mason syntax the double %=
% (like in the printf), what would be simply copied to the output as one &#=
39;%', e.g. the following</div><div><br></div><div>%%there lines start<=
/div><div>% for my $x (1..3) {</div><div>%% this is <% $x %></div><di=
v>% }</div><div><div>%%there lines end</div></div><div><br></div><div>shoul=
d ouput</div><div><br></div><div>%there lines start</div><div>% this is 1</=
div><div><div>% this is 1</div></div><div><div>% this is 2</div></div><div>=
<div>%there lines end</div></div><div><br></div><div>rgds,</div><div>t.</di=
v><div><br></div></div></div>
--047d7b6046b494e74405094eb186--
--===============1814435429955256040==
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
--===============1814435429955256040==
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
--===============1814435429955256040==--