hx-vars

NOTE: hx-varsλŠ” 더 μ•ˆμ „ν•œ hx-vals에 μ˜ν•΄ λŒ€μ²΄λ˜μ—ˆμŠ΅λ‹ˆλ‹€

hx-vars 속성을 μ‚¬μš©ν•˜λ©΄ AJAX μš”μ²­κ³Ό ν•¨κ»˜ 제좜될 λ§€κ°œλ³€μˆ˜μ— λ™μ μœΌλ‘œ μΆ”κ°€ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

이 μ†μ„±μ˜ 값은 μžλ°”μŠ€ν¬λ¦½νŠΈ Object Literals의 λ‚΄λΆ€ ꡬ문과 λ™μΌν•˜κ²Œ μ‰Όν‘œλ‘œ κ΅¬λΆ„λœ name:<expression> κ°’μ˜ λͺ©λ‘μž…λ‹ˆλ‹€.

  <div hx-get="/example" hx-vars="myVar:computeMyVar()">Get Some HTML, Including A Dynamic Value in the Request</div>

Security Considerations

Notes