Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 1531566

Browse files
committed
Updated Custom Views section of the docs.
1 parent 29ff767 commit 1531566

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/views.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The |project| provides out-of-the-box template files to render views at supporte
1313

1414
All of the default built-in views are all based on the same principle: they are a standard html templates styled with shared `Bootstrap <http://getbootstrap.com/>`_ CSS. Internationalization (i18n) is used to represent text on all default views so you can provide a nice translated view for each user based on their locale. CSS styles control the view look and feel.
1515

16-
#if( $servlet )
16+
#if( $servlet or $spring )
1717

1818
JSP Views
1919
---------
@@ -105,7 +105,7 @@ Here is an extremely simple template file that shows how the others operate:
105105
Internationalization (i18n)
106106
---------------------------
107107

108-
#if( $servlet )
108+
#if( $servlet or $spring )
109109

110110
All of the |project| default views are internationalized to support language translation based on the end-user's locale.
111111

@@ -256,7 +256,7 @@ The second interesting line above is this one:
256256
<!--/*/ <th:block th:include="${headViewName} :: ${headFragmentSelector}"/> /*/-->
257257

258258

259-
While this may look like a commented-out HTML comment, this is actually a special `Thymeleaf directive <http://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#thymeleaf-prototype-only-comment-blocks>`_ that will include another template. As you see, ``${headViewName}`` and ``${headFragmentSelector}`` are themselves values that are substituted at runtime with a template view name and a 'fragment selector' to allow you to control which fragment within the template is included. These values are configured with the following two configuration properties:
259+
While this may look like an HTML comment, this is actually a special `Thymeleaf directive <http://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#thymeleaf-prototype-only-comment-blocks>`_ that will include another template. As you see, ``${headViewName}`` and ``${headFragmentSelector}`` are themselves values that are substituted at runtime with a template view name and a 'fragment selector' to allow you to control which fragment within the template is included. These values are configured with the following two configuration properties:
260260

261261
.. code-block:: properties
262262

0 commit comments

Comments
 (0)