Skip to content

Instantly share code, notes, and snippets.

@zgulde
Last active June 19, 2018 16:38
Show Gist options
  • Save zgulde/8ae1307a011f91ff9d3fec26397e2e83 to your computer and use it in GitHub Desktop.
Save zgulde/8ae1307a011f91ff9d3fec26397e2e83 to your computer and use it in GitHub Desktop.
  • We're smarter than intellij when it comes to variables in our views

Defining a Thymeleaf fragment with a parameter

  1. Define the head fragment, including a placeholder for the page title
  2. Elsewhere, when the fragment is included, pass a value for the title
  3. In the fragment, use the passed value

Static Assets (things that don't change)

Including elements without a "wrapper"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment