Changes between Version 9 and Version 10 of ShortcutSyntaxIdeas
- Timestamp:
- Sep 21, 2005, 1:48:15 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShortcutSyntaxIdeas
v9 v10 77 77 }}} 78 78 79 == Idea 4: Simplified decorator == 80 81 {{{ 82 #!python 83 from django.views.decorators.shortcuts import use_template 84 85 @use_template('primes/index') 86 def prime_index(request): 87 return { 88 'title': 'Page Title', 89 'primes': [2, 3, 5, 7], 90 'header': 'The first 4 primes' 91 } 92 }}} 79 93 80 94 == Implementations ==