either you're phrasing things wrong or i'm misunderstanding things.
either way, i'll answer as i understand the questions.

On Fri, Apr 22, 2011 at 1:11 PM,  <sono...@fannullone.us> wrote:
>        I realize that this list may not be the best, or even most 
> appropriate, place to ask this question, but I'm just so curious that I'm 
> losing sleep over it! =;)
>
>        What is the best way to embed perl in an HTML file that is _not_ 
> located under the cgi-bin directory?

server side includes, iframes, maybe some sort of js parser and then
insert into the dom (forgot the function - dangerous anyways - don't
do it).

  I started learning PHP for this very reason, but I keep coming back
to Perl.  I've read some about Template Toolkit and others, but what
I'm still confused over is if these templates _must_ be located in
cgi-bin or can you embed code anywhere on your site?
>

you can put your templates wherever you want (at least in catalyst,
you just let it know if it's not in the default location with the
default extension - never used tt on it's own but many do).

>        If possible, I would like to be able to embed perl, placeholders, 
> templates, whatever, anywhere on my site.  Perhaps I'm working under the 
> wrong impression, but for some reason I'm thinking you can't.  Hopefully I'm 
> wrong.  Any help in pointing me in the right direction will be greatly 
> appreciated.

i think you're looking for a way to nicely put html into perl than the
other way around. if this is the case, i'd recommend looking at the
dancer documentation (you could just use tt, but why when you've got
nice mvc frameworks to *help* keep your stuff in the right place). if
you have bigger projects or find yourself limited (or just want a
bigger headache) look at catalyst.

outside of what you've asked, if you want real power, look at psgi
(plack in particular).

hth, but not too much :)

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to