[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: HTML template for MP2
From:       Adam Prime <adam.prime () utoronto ! ca>
Date:       2020-12-30 3:08:36
Message-ID: bae332da-ff70-8dab-12a8-687c8e2e9167 () utoronto ! ca
[Download RAW message or body]

On 12/29/20 8:55 PM, Matthias Peng wrote:
> Currently my mp2 handler outputs the content just for an JSON API, which 
> behaves well.
> If I want mp2 to output a full HTML page, what's the suggested template 
> for this?

There are a lot of ways to answer this, and I'm not sure what the 
question you're actually asking is.  If you're looking for a templating 
system to use in an application written for mod_perl, then you can use 
any of the various ones that exist for perl.  They should all work fine 
under mod_perl. I personally use Template Toolkit pretty much 
exclusively, but other people use other things.

But you might be asking what you can/should use to build a web 
application designed to run under mod_perl, which is a totally different 
set of things. Though those things probably use Template Toolkit, or 
something like it internally.

Alternatively you could just be asking how do i return a 200 response 
with a text/html Content Type.  In which case you can start with the 
sadly concise / incomplete examples here:

https://perl.apache.org/docs/2.0/user/intro/start_fast.html

Adam
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic