473,511 Members | 16,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple Web Templating system with execution in templates


Hi --

Does anyone have any recommendations for simple web templating systems for
python that also allow execution of python code within the the templates
themselves ?

So far I'm using Albatross, and it's nice, though it would be nicer still if
it had proper support for 'code tags' ala <? ?>.

--
regards, chris
Jul 18 '05 #1
3 1423
> Does anyone have any recommendations for simple web templating systems
for
python that also allow execution of python code within the the
templates
themselves ?

So far I'm using Albatross, and it's nice, though it would be nicer
still if
it had proper support for 'code tags' ala <? ?>.


The following templating system is definatelly not what you described
:-), but it allows you to use 'normal' Python with templates (and that
is probably what you really want):
http://freespace.virgin.net/hamish.s...ltemplate.html

Ksenia.
Jul 18 '05 #2
Ksenia Marasanova <ks****@ksenia.nl> writes:
The following templating system is definatelly not what you described
:-), but it allows you to use 'normal' Python with templates (and that
is probably what you really want):
http://freespace.virgin.net/hamish.s...ltemplate.html


Actually, the problem i'm facing is that i'm trying to create an application
that itself has templates. So I think what i'm really looking for is a
minimal cgi framework plus something that would enable me to 'post-process'
templates, with the option of executing python in the templates inside some
kind of sandbox.

--
regards, chris
Jul 18 '05 #3
Chris Stiles <to*******@spamex.com> wrote:

Hi --

Does anyone have any recommendations for simple web templating systems for
python that also allow execution of python code within the the templates
themselves ?

So far I'm using Albatross, and it's nice, though it would be nicer still if
it had proper support for 'code tags' ala <? ?>.


Perhaps, you can have a look at shell template called BASP:
http://freshmeat.net/projects/basp/
Essentially, you would be embedding shell script, in it, you would put
Python code. Or, you can modify the code to run Python directly.

--
William Park <op**********@yahoo.ca>
Open Geometry Consulting, Toronto, Canada
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3517
by: Bruce | last post by:
Which of the popular templating systems (e.g. PHLib, FastTemplate, Smarty) allow you to setup conditions in your templates, for example: <-- IF Variable=value --> this HTML <-- ELSEIF...
2
1452
by: Lothar Scholz | last post by:
I there anything that completely avoid the use of python code inside a template. I like the Amrita system because it allows me to design the templates with WYSIWYG editors and blind text.
0
1474
by: Chad A. Beckner | last post by:
I am starting to work on implementing ASP.NET (using VS.NET Dev 2003) into our current ASP 3.0 intranet setup. We have several (say 15 - 20) "applications" that are run within our intranet, which...
2
1775
by: Tom Gao | last post by:
I have a problem. The project that I'm working on requires me to duplicate records. As in a series of records are entered into the system the user then click on a button to make these as...
18
4939
by: pkassianidis | last post by:
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...
1
1505
by: mattborkin | last post by:
Hey all, For the past 2 years I have been maintaining a webpage for a client. I have created and maintained it using Paraben's Web Page Wizard software. For me, the creation and maintenance...
7
1606
by: Paul | last post by:
I have been coding apps with PHP for several years. But I am getting more involved in larger and more complicated PHP applications and want to use best practices. I use Eclipse's PHP IDE. I...
5
2315
by: jmDesktop | last post by:
Hi, I was using .net and it uses templates. I like that it did not mix the UI with logic. I saw there are many templating engines for php usage. Can you recommend one? I don' t know which to...
10
1692
by: Terrence Brannon | last post by:
Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.