diff --git a/docs/custom_templates.rst b/docs/custom_templates.rst index 1cdf588c..75855fd5 100644 --- a/docs/custom_templates.rst +++ b/docs/custom_templates.rst @@ -190,26 +190,8 @@ Note the ``default:row.html`` template name, which ensures Jinja will inherit from the default template. The ``_rows_and_columns.html`` template is included on both the row and the table -page, and displays the content of the row. The default template looks like this:: - - - - - {% for column in display_columns %} - - {% endfor %} - - - - {% for row in display_rows %} - - {% for cell in row %} - - {% endfor %} - - {% endfor %} - -
{{ column }}
{{ cell.value }}
+page, and displays the content of the row. The default ``_rows_and_columns.html`` template +`can be seen here `_. You can provide a custom template that applies to all of your databases and tables, or you can provide custom templates for specific tables using the @@ -232,7 +214,7 @@ provide a custom ``_rows_and_columns.html`` template like this:: {% for cell in row %} {% if cell.column == 'description' %} - !!{{ cell.value|safe }} + {{ cell.value|safe }} {% else %} {{ cell.value }} {% endif %}