Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
RE: Looking for very light weight template library (not framework
Sells, Fred
3/12/2008 3:30:00 AM
As I recall Quixote allowed you to embed html in python. was actually pretty cool. Havenot tried it in a long time.
> -----Original Message-----
> From: python-list-bounces+frsells=adventistcare.org@python.org
> [mailto:python-list-bounces+frsells=adventistcare.org@python.org]On
> Behalf Of Malcolm Greene
> Sent: Thursday, March 06, 2008 8:56 PM
> To: python-list@python.org
> Subject: Looking for very light weight template library (not
> framework)
>
>
> New to Python and looking for a template library that allows Python
> expressions embedded in strings to be evaluated in place. In
> other words
> something more powerful than the basic "%(variable)s" or "$variable"
> (Template) capabilities.
>
> I know that some of the web frameworks support this type of template
> capability but I don't need a web framework, just a library that
> supports embedded expression evaluation.
>
> Use case:
>
> myOutput = """>
> The total cost is {{invoice.total}}.
>
> This order will be shipped to {{invoice.contact}} at the following
> address:
>
> {{invoice.address}}
>
> This order was generated at {{some date/time expression}}
> """
>
> Any suggestions appreciated.
>
> Malcolm
> --
>
http://mail.python.org/mailman/listinfo/p...
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
RE: Looking for very light weight template library (not framework
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password