mysterious-toddler-20573
02/25/2022, 1:51 PMmysterious-toddler-20573
02/25/2022, 1:52 PMmysterious-toddler-20573
02/25/2022, 1:52 PMmysterious-toddler-20573
02/25/2022, 1:55 PM{ delimiting or whitespace, which would allow you to write the above like this:
html
<script tag="my-thing" type="dzkscript">
let count = 0
(main
(h1.title 'Counter App')
(button#increment onclick:count++ "Increment")
(output `clicked ${count} times`))
</script>
<my-thing/>mysterious-toddler-20573
02/25/2022, 1:57 PM@ references to let people pass in stuff:
html
<script tag="my-thing" type="dzkscript">
let count = 0
(main
(h1.title @title)
(button#increment onclick:count++ "Increment")
(output `clicked ${count} times`))
</script>
<my-thing title='Counter App'/>mysterious-toddler-20573
02/25/2022, 1:59 PMmysterious-toddler-20573
02/25/2022, 2:14 PMhtml
<script tag="my-thing" type="dzkscript">
set :count to 0
def increment()
increment count
end
(main
(h1.title @title)
(button#increment (on click increment()) "Increment")
(output `clicked ${count} times`))
</script>
<my-thing title='Counter App'/>calm-ice-23682
02/25/2022, 2:15 PMmysterious-toddler-20573
02/25/2022, 2:15 PMmysterious-toddler-20573
02/25/2022, 2:15 PMmysterious-toddler-20573
02/25/2022, 2:15 PMgorgeous-airport-54386
02/25/2022, 2:25 PMkind-jordan-22489
02/25/2022, 2:29 PMbrainy-ice-92385
02/25/2022, 2:51 PMbrainy-ice-92385
02/25/2022, 2:52 PM@layer components declarations using BEM.kind-jordan-22489
02/25/2022, 2:53 PMbrainy-ice-92385
02/25/2022, 2:53 PMkind-jordan-22489
02/25/2022, 2:54 PMbrainy-ice-92385
02/25/2022, 2:56 PM@apply directive. That's how I move stuff out.brainy-ice-92385
02/25/2022, 3:12 PMmysterious-toddler-20573
02/25/2022, 3:21 PMhundreds-camera-24900
02/25/2022, 3:22 PMred-farmer-97020
02/25/2022, 3:23 PMbrave-magazine-28098
02/25/2022, 6:44 PMbrainy-ice-92385
02/25/2022, 6:48 PMkind-jordan-22489
02/25/2022, 7:45 PMhundreds-camera-24900
02/25/2022, 7:47 PMkind-jordan-22489
02/25/2022, 8:23 PMfast-nail-28668
02/26/2022, 12:11 AM<form id="theform">...</form>
<div hx-post="/search" hx-trigger="from:#theform">...</div>
Should I expect an event attached on the form, or on the div? Either way, should I expect the form's submission to be surpressed and overridden by the event handler?white-motorcycle-95262
02/26/2022, 2:22 AMmethod defined on the form, I believe it woulldn't get submitted by anything. Also, I believe the event will come from the div