Search
Contents
13.
Thymeleaf Views
13.
Thymeleaf Views
¶
13.1. Templates
13.1.1. Templates are Frameworks
13.1.1.1. No Template
13.1.1.2. A Better Way
13.1.1.3. Templates Support Dynamic Content
13.1.2. Templates Provide Structure, Not Content
13.1.3. Check Your Understanding
13.2. Creating a Template
13.2.1. Thymeleaf
13.2.1.1. Thymeleaf, Naturally
13.2.2. Thymeleaf Dependency
13.2.2.1. During Setup for a New Project
13.2.2.2. Add to an Existing Project
13.2.3. Start a Practice Project
13.2.3.1. Template Location
13.2.3.2. Add a Template
13.2.4. Thymeleaf Template
13.3. Using a Template
13.3.1. Passing Data to a Template
13.3.1.1. Accessing Data in a Template
13.3.2. Setting Default Text
13.3.3. Organizing Templates
13.3.4. Check Your Understanding
13.4. Iterating in a Template
13.4.1.
th:each
13.4.1.1. Location Matters
13.4.2.
th:block
13.4.2.1. Readability and Nested Loops
13.4.3. Check Your Understanding
13.5. Conditionals in a Template
13.5.1. Display Content
if
13.5.1.1. Adding vs. Displaying/Hiding
13.5.1.2. What is
true
?
13.5.1.3.
unless
Instead of
else
13.5.1.4. Logical Operators
13.5.2. Try It!
13.5.3. Check Your Understanding
13.6. Thymeleaf Forms
13.6.1. Start a New Project
13.6.2. Coding Events Setup - Video
13.6.3. Coding Events Setup - Text
13.6.4. Create and Render a Form - Video
13.6.5. Create and Render a Form - Text
13.6.6. Add a Form Handler Method - Video
13.6.7. Add a Form Handler Method - Text
13.7. Template Fragments
13.7.1. Fragments DRY Your Code
13.7.1.1.
th:fragment
13.7.1.2.
th:replace
13.7.2. Try It!
13.7.3. Check Your Understanding
13.8. Static Resources
13.8.1. Accessing Resources
13.8.1.1.
th:src
and
th:href
- Video
13.8.1.2.
th:src
13.8.1.3.
th:href
13.8.2. Check Your Understanding
13.9. Bootstrap
13.9.1. Introduction
13.9.2. Adding Bootstrap to
coding-events
13.9.2.1. Bootstrap - Video
13.9.2.2. Bootstrap Layout
13.9.2.3. Bootstrap Tables
13.9.2.4. Bootstrap Forms
13.9.3. Check Your Understanding
13.10. Exercises: Thymeleaf Views
13.10.1. Getting Started
13.10.2. Expanding our Events Schedule
13.10.3. Bonus Mission
13.11. Studio: Spa Day!
13.11.1. Setup
13.11.2. The Customer Profile
13.11.3. List All Appropriate Facial Treatments
13.11.4. Mani or Pedi?
13.11.5. End Result
13.11.6. Bonus Mission
←
12.3.
Studio: If It Ain’t Broke, Add a Breakpoint!
13.1.
Templates
→