looking for template package

Discussion in 'Python' started by Neal Becker, Mar 4, 2009.

  1. Neal Becker

    Neal Becker Guest

    I'm looking for something to do template processing. That is, transform
    text making various substitutions. I'd like to be able to do substitutions
    that include python expressions, to do arithmetic computations within
    substitutions.

    I know there are lots of template packages, but most seem aimed at web use.
    This is just text processing, not part of any web stuff.

    Any suggestions?
     
    Neal Becker, Mar 4, 2009
    #1
    1. Advertising

  2. Neal Becker a écrit :
    > I'm looking for something to do template processing. That is, transform
    > text making various substitutions. I'd like to be able to do substitutions
    > that include python expressions, to do arithmetic computations within
    > substitutions.
    >
    > I know there are lots of template packages, but most seem aimed at web use.


    "most" ? At least 4 of them are just text-based:
    - Mako
    - Cheetah
    - Django's template (can be used standalone)
    - Jinja (inspired from Django's)
     
    Bruno Desthuilliers, Mar 4, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Theis
    Replies:
    2
    Views:
    494
    Chris Theis
    Jul 24, 2003
  2. tom_usenet
    Replies:
    0
    Views:
    560
    tom_usenet
    Jul 24, 2003
  3. Replies:
    1
    Views:
    2,140
    Gianni Mariani
    Jun 8, 2007
  4. Peng Yu
    Replies:
    3
    Views:
    801
    Thomas J. Gritzan
    Oct 26, 2008
  5. nguillot
    Replies:
    5
    Views:
    550
Loading...

Share This Page