mysterious-toddler-20573
08/06/2022, 5:32 PMaloof-football-7378
08/06/2022, 6:36 PMjson
customers:[{id:1,..},{id:2,...},{id:3,...}]
However, the output comes out as empty.
What could be the issue?
This is exactly how I defined the template
html
{{#customers}}
Id: {{id}}
{{/customers}}
html
{{^customers}}
Empty list
{{/customers}}
brainy-ice-92385
08/06/2022, 6:52 PMaloof-football-7378
08/06/2022, 6:53 PMbrainy-ice-92385
08/06/2022, 6:59 PMbrainy-ice-92385
08/06/2022, 7:00 PMbrainy-ice-92385
08/06/2022, 7:00 PMaloof-football-7378
08/06/2022, 7:20 PMaloof-football-7378
08/06/2022, 7:20 PMaloof-football-7378
08/06/2022, 8:27 PMaloof-football-7378
08/06/2022, 8:41 PMuser
08/06/2022, 10:40 PMincalculable-holiday-29658
08/08/2022, 9:07 AMblue-ghost-19146
08/08/2022, 11:18 AMmysterious-toddler-20573
08/08/2022, 5:45 PMmysterious-toddler-20573
08/08/2022, 5:45 PMjolly-kite-167
08/08/2022, 5:56 PMlate-king-98305
08/08/2022, 9:06 PMsubmit
event on that form, or is it something else? (I've got an editor that's not updating the text now that it's boosted, and I suspect its "update the parent on submit" logic isn't firing.)dry-window-71739
08/09/2022, 11:00 AMtall-dinner-62086
08/09/2022, 11:05 AMfind
and closest
try to find parents and children, they won't match siblingsdry-window-71739
08/09/2022, 11:21 AMmysterious-toddler-20573
08/09/2022, 11:21 AMdry-window-71739
08/09/2022, 11:31 AMmysterious-toddler-20573
08/09/2022, 12:56 PMmysterious-toddler-20573
08/09/2022, 1:00 PMmysterious-toddler-20573
08/09/2022, 1:00 PM<button hx-get="/foo"
hx-target="next output">
Do It
</button>
<output>--</output>
dry-window-71739
08/09/2022, 1:02 PMmysterious-toddler-20573
08/09/2022, 1:05 PMsome-hairdresser-28401
08/09/2022, 1:29 PMhtml
<div id="newcustomerdetails" hx-trigger="CustomerCreated from:location" hx-get></div>
<form hx-post="/customers">
<!-- some input elements -->
<button>Add customer</button>
</form>
When `POST`ing the form
, the server creates a 201
with the HX-Trigger
response header set to CustomerCreated
and the Location
header set to /customers/123
and newcustomerdetails
would be populated with the content from GET /customers/123
.
This wouldn't add much value for scenarios that can be targeted using hx-target
but if you have multiple parts of the page to be updated, it might be useful.mysterious-toddler-20573
08/09/2022, 1:32 PM