Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I'm sure I could build something myself, but I'm sure this has already
been done quite a few times. Why re-invent the wheel, right?
Thank you,
Allen 17 3188
allen.fowler wrote:
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
HTMLTemplate is a minimal system for that sort of thing.
It doesn't drag in some big "framework".
John Nagle
"allen.fowler" <al**********@yahoo.comwrote in
news:11**********************@e9g2000prf.googlegro ups.com:
Hello,
Can anyone recommend a simple python template engine for
generating HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance
would be a bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
Did you try Cheetah? I've just started using it for a simple job,
just looping and conditionals and it seemed quite simple to me.
Adrian
Have you tried CherryPy? http://www.cherrypy.org/
It's not a template engine, but a simple web server engine, and
you could code your conditionals and loops directly in Python... When
I have tried it, it looked very nice and easy.
Ciprian.
On 10/15/07, allen.fowler <al**********@yahoo.comwrote:
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I'm sure I could build something myself, but I'm sure this has already
been done quite a few times. Why re-invent the wheel, right?
Thank you,
Allen
Ciprian Dorin Craciun wrote:
Have you tried CherryPy? http://www.cherrypy.org/
It's not a template engine, but a simple web server engine, and
you could code your conditionals and loops directly in Python... When
I have tried it, it looked very nice and easy.
Ciprian.
On 10/15/07, allen.fowler <al**********@yahoo.comwrote:
>Hello,
Can anyone recommend a simple python template engine for generating HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I'm sure I could build something myself, but I'm sure this has already been done quite a few times. Why re-invent the wheel, right?
Thank you, Allen
I concur completely!
My site http://IvoNet.nl is completely written in python and based on a
very early release of cherrypy.
gr,
Ivo.
CherryPy looks nice... though I am just looking to generate static
reports.
Thanks anyway... I'll keep it in mind for the future.
On Oct 15, 4:38 am, "Ciprian Dorin Craciun"
<ciprian.crac...@gmail.comwrote:
Have you tried CherryPy?http://www.cherrypy.org/
It's not a template engine, but a simple web server engine, and
you could code your conditionals and loops directly in Python... When
I have tried it, it looked very nice and easy.
Ciprian.
In article <11**********************@e9g2000prf.googlegroups. com>,
"allen.fowler" <al**********@yahoo.comwrote:
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
I use Spyce, but in addition to being a template system for mixing
Python & HTML, it is also a Web server which drags in a bunch of extra
cruft that you don't need. It's what I use to generate static reports,
though.
Good luck
--
Philip http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
On Oct 15, 1:26 am, John Nagle <na...@animats.comwrote:
allen.fowler wrote:
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
HTMLTemplate is a minimal system for that sort of thing.
It doesn't drag in some big "framework".
John Nagle
This look exactly like what I need.
Google first led me to the "HTML::Template" perl library.
But now i've got the right one at: http://freespace.virgin.net/hamish.s...ltemplate.html
Thank you.
On Oct 15, 1:26 am, John Nagle <na...@animats.comwrote:
allen.fowler wrote:
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
HTMLTemplate is a minimal system for that sort of thing.
It doesn't drag in some big "framework".
John Nagle
Thanks...
Wait a sec... this is a Perl module...
Am I missing something? :)
Allen
CherryPy looks nice... though I am just looking to generate static
reports.
Thanks anyway... I'll keep it in mind for the future.
On Oct 15, 4:38 am, "Ciprian Dorin Craciun"
<ciprian.crac...@gmail.comwrote:
Have you tried CherryPy?http://www.cherrypy.org/
It's not a template engine, but a simple web server engine, and
you could code your conditionals and loops directly in Python... When
I have tried it, it looked very nice and easy.
Ciprian.
allen.fowler wrote:
>Hello,
Can anyone recommend a simple python template engine for generating HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I'm sure I could build something myself, but I'm sure this has already been done quite a few times. Why re-invent the wheel, right?
Thank you, Allen http://htmltmpl.sourceforge.net/
It has loops and conditionals, simple to use. Very simple.
Kind of old program (dont seems to have suffer modifications since 2001)
Try it.
Cheers.
Gerardo
On Oct 16, 4:07 am, jean-michel bain-cornu <nos...@nospam.frwrote:
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I have written my own a couple of years ago.
Haven't we all.
When I wrote mine (HRL), the 5 million web page systems out there
seemed all to be either:
A. Intricate frameworks like Zope with a maniacal insistence on
separation of content from presentation (not that that's bad, it's
just a lot of unnecessary overhead for my needs).
or
B. Template systems with very little versatility.
These days there seems to be more coverage of different needs. For
instance, Mako looks like something I might have used if it had been
around back then.
Carl Banks
Adrian Cherry a écrit :
"allen.fowler" <al**********@yahoo.comwrote in
news:11**********************@e9g2000prf.googlegro ups.com:
>>Hello,
Can anyone recommend a simple python template engine for generating HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
Did you try Cheetah?
Did you read the OP's question ?-)
These days there seems to be more coverage of different needs. For
instance, Mako looks like something I might have used if it had been
around back then.
It's probably the same to me.
And many times, the simple python templating system %(var)s is good
enough...
This one is really small and simple (one small file): http://davidbau.com/archives/2007/02...templates.html
"allen.fowler" <al**********@yahoo.comwrote in message
news:11**********************@e9g2000prf.googlegro ups.com...
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I've seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I'm sure I could build something myself, but I'm sure this has already
been done quite a few times. Why re-invent the wheel, right?
Thank you,
Allen
Bruno Desthuilliers <bd*****************@free.quelquepart.fr>
wrote in news:47***********************@news.free.fr:
>
Did you read the OP's question ?-)
Yup, as much as anyone else has. Why?
Adrian This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nick Messick |
last post by:
I have a multi step signup form that I'm building and I have the
following question. Should I do it this way:
<?php
if (blah == 1) {
?><table><td width="100">........etc
<?php } else { ?>...
|
by: Wensheng |
last post by:
Hi, I wrote a small template engine called spytee.
Like any template enigne, it take a text(html) template file as input,
process the variable tags in the file, and display the resulted text.
The...
|
by: C. Olive |
last post by:
Environment: Classic ASP running on IIS v5.1
Scripting Language: VBScript
I suppose someone would have to be somewhat familiar with Perl in
order to answer this question specifically. If you...
|
by: gene.ellis |
last post by:
Hey everyone,
There is probably a really simple solution. I have an XSL document that
reads into content from my XML document and creates an HTML document
(with a .php extension). There is some...
|
by: HchC |
last post by:
PHP is already a HTML templating laguage, but I am looking for a HTML
template engine for users who know nothing about HTML. This template engine
should not be too complex, as this is for very...
|
by: Robert J. Hansen |
last post by:
I'm exploring the use of type traits (which, I hasten to say, I've
hardly ever used before) as a way to help simplify some complex
special-case logic in an existing codebase. I'm finding that I'm...
|
by: Claudio Grondi |
last post by:
In the process of learning about some deeper details of Python I am
curious if it is possible to write a 'prefix' code assigning to a and b
something special, so, that Python gets trapped in an...
|
by: gcmartijn |
last post by:
H!
I was wondering how I can do something like this.
file.html
---------
<b>hello world</b>
<special pythoncodetag>
print 'hello world'
#or display str(time.localtime())
|
by: prakash.mirji |
last post by:
I am using evaluation copy of RW 9.0 for porting one of C++
application on RHEL4 (x86 platform).
We are getting some issues into RW template classes. Please need
assistance on this issue.
Here...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |