Ticket #10800: 10800.diff

File 10800.diff, 774 bytes (added by Tim Graham, 15 years ago)
  • docs/ref/templates/api.txt

     
    597597    rendered = render_to_string('my_template.html', { 'foo': 'bar' })
    598598
    599599The ``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
     602actually exists will be rendered) -- and two optional arguments:
    602603
    603604    dictionary
    604605        A dictionary to be used as variables and values for the
Back to Top