Ticket #10800: 10800.diff
File 10800.diff, 774 bytes (added by , 15 years ago) |
---|
-
docs/ref/templates/api.txt
597 597 rendered = render_to_string('my_template.html', { 'foo': 'bar' }) 598 598 599 599 The ``render_to_string`` shortcut takes one required argument -- 600 ``template_name``, which should be the name of the template to load 601 and render -- and two optional arguments: 600 ``template_name``, which should be the name of the template to load and render 601 (or a list or tuple of template names in which case the first template that 602 actually exists will be rendered) -- and two optional arguments: 602 603 603 604 dictionary 604 605 A dictionary to be used as variables and values for the