Changes between Version 15 and Version 16 of ShortcutSyntaxIdeas
- Timestamp:
- Sep 22, 2005, 3:37:27 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShortcutSyntaxIdeas
v15 v16 76 76 return load_and_render('index', 'title': 'Page Title', 'primes': [2, 3, 5, 7], 'header': 'The first 4 primes:') 77 77 }}} 78 78 ''I think specifying HttpResponse outside of the function is a better idea: 79 {{{return HttpResponse(load_and_render('index', 'title': 'Page Title', 'primes': [2, 3, 5, 7], 'header': 'The first 4 primes:'))}}} 80 I'll be using the templating system for a LOT more than just HTTP (system configs etc). Maybe have load_and_respond(), load_and_return()?'' 79 81 == Idea 4: Simplified decorator == 80 82