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 3191
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: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |