in reply to Re^3: What is the character for end of string in template Toolkit?
in thread What is the character for end of string in template Toolkit?

Duhhh!!!! Thanks everyone! I had an whitespace after the comma:(( Works fine now!
  • Comment on Re^4: What is the character for end of string in template Toolkit?

Replies are listed 'Best First'.
Re^5: What is the character for end of string in template Toolkit?
by CountZero (Bishop) on Jan 16, 2009 at 08:45 UTC
    TT also knows how to trim your input.
    [% "Blah Blah, " | trim | remove(',$') %]

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James