Spring

[Spring] Thymeleaf 문법

quedevel 2020. 3. 11. 15:51
728x90
반응형
  • Simple expressions:
    • Variable Expressions: ${...}
    • Selection Variable Expressions: *{...}
    • Message Expressions: #{...}
    • Link URL Expressions: @{...}
    • Fragment Expressions: ~{...}
  • Literals
    • Text literals: 'one text', 'Another one!',…
    • Number literals: 0, 34, 3.0, 12.3,…
    • Boolean literals: true, false
    • Null literal: null
    • Literal tokens: one, sometext, main,…
  • Text operations:
    • String concatenation: +
    • Literal substitutions: |The name is ${name}|
  • Arithmetic operations:
    • Binary operators: +, -, *, /, %
    • Minus sign (unary operator): -
  • Boolean operations:
    • Binary operators: and, or
    • Boolean negation (unary operator): !, not
  • Comparisons and equality:
    • Comparators: >, <, >=, <= (gt, lt, ge, le)
    • Equality operators: ==, != (eq, ne)
  • Conditional operators:
    • If-then: (if) ? (then)
    • If-then-else: (if) ? (then) : (else)
    • Default: (value) ?: (defaultvalue)
  • Special tokens:
    • No-Operation: _

 

출저 : Thymeleaf 공식 문서. (2020.03.11). URL: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#standard-expression-syntax

728x90
반응형

'Spring' 카테고리의 다른 글

[Spring] Thymeleaf를 이용해 데이터 다루기  (0) 2020.03.13
[Spring] Swagger  (0) 2020.03.12
[Spring] Mustache  (0) 2020.03.12
[Spring] Thymeleaf  (0) 2020.03.10
[Spring] Spring boot를 이용해 MyBatis 셋팅하기  (0) 2020.03.01