[Tutor] separating logic from html in web apps

Chris Lott chrisl@frodo.thethirdsector.com
Wed, 29 May 2002 10:26:21 -0800


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Perhaps I've made it a bit clearer?
> 
> PS: I intentionally avoided python here since your problem is
IMO
> completely generic and language independend.  Give it a try
with the
> tools you're used.  If you feel you have grasped the concept
and still
> think you need to change the framework take a look at options
like Perl
> and Python...

Yes... this is what I already do in PHP. I keep most of my code
and functions in exsternal files, including them as needed.
However I can't do this in Python (so far) because I don't know
of a templating system where I can put ANY code in my HTML, so I
have to spit out all of the HTML from my Python scripts. I guess
I need to look for some kind of templating system, though it
seems like many python people build web apps just fine without
them, which is what I am trying to understand. I think :)

c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (MingW32) - GPGshell v2.30

iD8DBQE89R1A1oth6FEEbP0RAlAzAJ47vCh1HDAoBLk6vBmJ3JsmNP6tFQCgzjkS
VPnDKfK+Smw66337HU+If2E=
=o+Ew
-----END PGP SIGNATURE-----