Skip to content

Instantly share code, notes, and snippets.

@rtyler
Created June 26, 2009 19:03
Show Gist options
  • Select an option

  • Save rtyler/136672 to your computer and use it in GitHub Desktop.

Select an option

Save rtyler/136672 to your computer and use it in GitHub Desktop.
class Lolwut(unittest.TestCase):
def test_Fail(self):
template = '''
#set $title = $title.split('|')[0]
This is my title: $title
'''
template = Cheetah.Template.Template.compile(template)
template = template(namespaces={'title' : 'Thing | Other'}).respond()
print template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment