Created
April 16, 2009 21:02
-
-
Save rtyler/96651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cheetah markup like this: | |
#try | |
#import cjson | |
#except ImportError | |
#import simplejson | |
#end try | |
Will now appropriately generate this code: | |
try: | |
import cjson | |
except ImportError: | |
import simplejson | |
Instead of what it previously generated: | |
import cjson | |
import simplejson | |
try: | |
except ImportError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#def foo() | |
## Import mymodule local to my function | |
#import mymodule | |
#end def |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment