Changes between Version 15 and Version 16 of ShortcutSyntaxIdeas


Ignore:
Timestamp:
Sep 22, 2005, 3:37:27 AM (19 years ago)
Author:
Boffbowsh
Comment:

Comment on the implemented idea for a function

Legend:

Unmodified
Added
Removed
Modified
  • ShortcutSyntaxIdeas

    v15 v16  
    7676     return load_and_render('index', 'title': 'Page Title', 'primes': [2, 3, 5, 7], 'header': 'The first 4 primes:')
    7777}}}
    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:'))}}}
     80I'll be using the templating system for a LOT more than just HTTP (system configs etc). Maybe have load_and_respond(), load_and_return()?''
    7981== Idea 4: Simplified decorator ==
    8082
Back to Top