Using just the Mako part of Pylons?

Matt Nordhoff mnordhoff at mattnordhoff.com
Tue Jul 1 02:57:40 EDT 2008


John Salerno wrote:
> Bruno Desthuilliers wrote:
>> John Salerno a écrit :
>>> I just installed Pylons onto my hosting server so I could try out
>>> templating with Mako, but it seems a little more complicated than that.
>>
>> Err... Actually, it's certainly a little less complicated than that.
>> First point: Mako is totally independant from Pylons. Second point:
>> you don't need any web server to use Mako - it's just another Python
>> package.
> 
> Well, so far I have installed Pylons onto my web server, but a test Mako
> template isn't rendering, it just prints the text to the browser.
> There's got to be something more to do to get it all hooked up so that
> it works.

What do you mean by "the text"? The source code of the template? A
random insult? The generated page? If it's the last, you forgot to set a
Content-Type header.
-- 



More information about the Python-list mailing list