Using templates means that the code can work with different templates,
and this should be seamless, it also means that different code can be
used with the templates, for example if different languages are used.
This seems to contradict your statement that you dislike 'embedding
code or html
No templates, no python-like or special languages, only pure and simple
python.
You can embedd python into html or, if it better suits your programming
style, you can embed html into python. Why don't you give it a try?
I dislike embedding code or html in each other, apart from the
I meant that it is not strictly necessary to use templates in
Karrigell, although you can use Cheetah if you want.
I'm not used to templates mainly because I'm familiar with the way PHP
works and, for simple dynamic sites like those I work on, this is the
simpliest approach.
Another reason is that
[EMAIL PROTECTED] wrote:
I dislike embedding code or html in each other, apart from the
'impurity' of mixing code and user interface it makes them inseparable.
Using templates means that the code can work with different templates,
and this should be seamless, it also means that different code
Hello everybody,
I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database. I have to say I
am overwhelmed
by the plethora of different frameworks, templating engines, HTML
generation tools etc that
exist.
[EMAIL PROTECTED] wrote:
Hello everybody,
I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database.
(snip)
After some thought I decided to leave the various frameworks
aside for the
time being and
After some thought I decided to leave the various frameworks
aside for the time being and use mod_python.publisher along with some
means of generating HTML on the fly.
I kind of like KID templates the most, you can easyly work with them in any
HTML authoring software, they are easy to use
I just do the following:
I store the form data as a pickeled dictionary. Then I create my
HTML form with something like this:
HTMLout=HTMLBODY..
..
INPUT NAME=field1 value=%(field1)s
INPUT NAME=field2 value=%(field2)s
INPUT NAME=field3 value=%(field3)s'''
where the field1, field2 etc
execute()
===snip=
=
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 11:32 AM
To: python-list@python.org
Subject: HTML generation vs PSP vs