cold-morning-35868
07/24/2021, 4:55 AM<script> reference to htmx be just before the close of the body tag, or any cases it needs to be higher up (in head) ?salmon-xylophone-28580
07/24/2021, 9:12 AMsalmon-xylophone-28580
07/24/2021, 9:17 AMmysterious-toddler-20573
07/24/2021, 12:27 PMcolossal-architect-94373
07/24/2021, 11:49 PMfast-nail-28668
07/25/2021, 12:37 AMmysterious-toddler-20573
07/25/2021, 4:26 PMmysterious-toddler-20573
07/26/2021, 2:05 AMsalmon-xylophone-28580
07/26/2021, 6:42 AMcold-morning-35868
07/26/2021, 11:56 AMmillions-morning-77621
07/26/2021, 12:30 PMmillions-morning-77621
07/26/2021, 12:31 PMmillions-morning-77621
07/26/2021, 12:31 PMmysterious-toddler-20573
07/26/2021, 2:04 PMmysterious-toddler-20573
07/26/2021, 2:05 PMmysterious-toddler-20573
07/26/2021, 2:06 PMuser
07/26/2021, 3:41 PMuser
07/26/2021, 3:52 PMcolossal-architect-94373
07/27/2021, 3:07 AMuser
07/27/2021, 8:49 AMnarrow-room-51024
07/27/2021, 3:46 PMnarrow-room-51024
07/27/2021, 3:48 PMmysterious-toddler-20573
07/27/2021, 5:05 PMinclude funcitonality
2) my proposed "inline partials" syntax, which allows you to define a partial bit of content directly and inline within an outer template.
The first version of this feature is available in many templating systems, including rails, where I use it frequently. It is most useful when you want to reuse a partial from multiple places, but it's kind of a shame, from a locality of behavior standpoint, if you only incluce the partial in one place.
In this latter case, where you are including the inline partial in once place, it would be nice to have the latter feature, allowing you to give a partial bit of a larger template a name, and then render that "inner" template directly, with the necessary symbols.mysterious-toddler-20573
07/27/2021, 5:06 PMmysterious-toddler-20573
07/27/2021, 5:08 PMhtml
<div hx-get="/user_count" hx-trigger="every 3s">
<% partial user_count %>
There are <%= user_count %> users online...
<% end %>
</div>mysterious-toddler-20573
07/27/2021, 5:10 PMdef user_count
return render_partial( "main_template.user_count.html", user_count:get_user_count() )
endbillions-greece-86178
07/27/2021, 8:36 PM<form hx-post="/save_gist_url/" hx-target="this">
<input type="url" name="gist_url" value="https://gist.github.com/ViggieSmalls/caf2e27d587cdd92d4dc2c6feeb62490.js" id="id_gist_url">
<button>Save</button>
</form>
and the response from the server is
<script src="https://gist.github.com/ViggieSmalls/caf2e27d587cdd92d4dc2c6feeb62490.js"></script>
The script tag is placed inside the html, but the js is not executed. How can I get the gist from GitHub to be displayed on the page? 🙂lemon-rainbow-71647
07/27/2021, 10:20 PMmysterious-toddler-20573
07/27/2021, 10:40 PM