[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: How to display images ?-Not Working
From: "Manoj Bist" <manoj.bist1 () gmail ! com>
Date: 2007-08-21 18:04:48
Message-ID: 8ec3b7c10708211104r2b90d314rf4e97c5aa8c7be52 () mail ! gmail ! com
[Download RAW message or body]
Hi Rick,
Please use Text::Template for generating the html you send to the client.
As long as you keep appending the html string to $OUT, it should work
under mod_perl2.0.
http://search.cpan.org/~mjd/Text-Template-1.44/lib/Text/Template.pm
Thanks,
Manoj.
On 8/21/07, RGKärcher <gerkarcher@yahoo.com.ar> wrote:
> Hi guys ,
>
> Thanks Michael and Georg but none of the examples
> works for me ...
>
> I'm using Apache::Asp .
>
> What could be the problem ?
>
> Thanks in Advance
>
> Rick
>
> --- Michael Peters <mpeters@plusthree.com> escribió:
>
> > Georg Grabler wrote:
> > > On Tuesday 21 August 2007 15:48:23 RGKärcher
> > wrote:
> > > > print " <p><a href=\"http://www.mysite.net/\">
> > <img
> > > > src=\"site_images/$image \" width=\"160\"
> > > > height=\"180\" alt=\"image \"
> > class=\"float-left\"
> > > > /></a>\n";
> > >
> > > Perl is just a bit differnt. Either, use ${image}
> > instead of $image or use
> > > sprintf.
> >
> > You can use both of those, but you don't really need
> > to. The above should work
> > just fine. But don't all those escapes of the double
> > quotes give you a headache?
> > There are so many better ways of doing that:
> >
> > print qq|<p><a href="http://www.mysite.net/">
> > <img src="site_images/$image" width="160"
> > height="180" alt="image"
> > class="float-left" />
> > </a></p>
> > > ;
> >
> > Having said that, when working with HTML you should
> > really be using templates. I
> > like Template Toolkit
> > (http://search.cpan.org/perldoc?Template) and also
> > use
> > HTML::Template
> > (http://search.cpan.org/perldoc?HTML::Template) but
> > if you're
> > coming from PHP then Mason might be more up your
> > alley
> > (http://search.cpan.org/perldoc?HTML::Mason)
> >
> > --
> > Michael Peters
> > Developer
> > Plus Three, LP
> >
> >
>
>
> Ricardo german Kärcher
>
> gerkarcher@yahoo.com.ar
> german@gnosticos.net
> rgkx@imaginator.com
>
>
> ____________________________________________________________________________________
> ¡Sé un mejor fotógrafo!
> Perfeccioná tu técnica y encontrá las mejores fotos. Visitá \
> http://ar.yahoo.com/promos/mejorfotografo.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic