Golang + HTMX - Creating a Go webserver / HTMX Integration / Template Fragments

Golang + HTMX - Creating a Go webserver / HTMX Integration / Template Fragments

BugBytes

1 год назад

146,135 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@BbB-vr9uh
@BbB-vr9uh - 21.11.2023 19:25

Awesome video! Loved how you show each piece in detail before moving onto the next piece.

Ответить
@zacheasey1172
@zacheasey1172 - 10.11.2023 23:31

Nice tutorial. My only critique is to not parse templates per request, it should be done once on startup and then reused throughout.

Ответить
@josephgaryochoa4348
@josephgaryochoa4348 - 09.11.2023 17:18

nice tutorial, is it.possible to return multiple template block and data? thanks

Ответить
@hba6018
@hba6018 - 07.11.2023 05:37

Quarkus + Qute + HTMX = 🩷 = Quarkus Renade

Ответить
@user-jr5wc7xf1j
@user-jr5wc7xf1j - 03.11.2023 20:10

hi, thnx! how about some two html-pages which use one template?

Ответить
@kevinz1991
@kevinz1991 - 29.10.2023 09:19

awesome video! thank you so much. subscribed :)

Ответить
@MrJmanthe1st
@MrJmanthe1st - 25.10.2023 23:47

Can you move the film-list-element into its own .HTML file and return that?

Ответить
@timbrockley
@timbrockley - 24.10.2023 13:58

Great introduction - you covered a lot of useful coding techniques in an easy to understand way :)

Ответить
@ricardorien
@ricardorien - 23.10.2023 19:19

MOAR!

Ответить
@FrostlightX
@FrostlightX - 15.10.2023 23:22

Thank you, HTMX + GO is exactly what I'm looking for, keep 'em coming

Ответить
@MrLegarcia
@MrLegarcia - 14.10.2023 20:33

+1

Ответить
@Luis-fh8cv
@Luis-fh8cv - 14.10.2023 15:24

I appreciate that this video is aimed at beginners and is meant to be as simple as possible. However, I think there is a very large topic that was unaddressed particularly when you use ‘fmt.Sprintf’ to generate the html response interpolating user data from the client. I appreciate that the final product removed those lines but it would have been better to not use that code at all or have a massive banner disclaimer telling people NEVER to do that as it allows code injections and it’s extremely unsafe. I appreciate there was a brief mention earlier in the video but that’s not nearly enough. In particular beginners need to be extremely aware of this as it’s sadly still so common out there.

Having said that the video was great and I don’t mean to be overly critical or negative. I sincerely appreciate the contribution! And wish you best of luck!

Ответить
@ZorroRBF
@ZorroRBF - 14.10.2023 09:26

This video is a master piece. I watched it a week ago with little knowledge of HTMX and no knowledge of GO templates. After learning more about the two subjects, I saw this video again and it is great! Thx a lot! Really good job!

Ответить
@sundae6610
@sundae6610 - 11.10.2023 11:48

why the Hello world rendered twice for me ??
edit: i added an h2 and its also doubled
nvm i executed tmpl twice

Ответить
@0ktothorp
@0ktothorp - 07.10.2023 18:34

This is exactly what I wanted to learn lately. Thanks! 😁

Ответить
@xxMRLNxx
@xxMRLNxx - 07.10.2023 05:59

MORE GO!!!!!

Ответить
@marcusk7855
@marcusk7855 - 06.10.2023 11:25

So there is a weird thing where you must start your struct fields with a capital letter or they wont work with the templates. Cant see anything in documentation about it but it just took my 3 hours to figure out why my templates wouldn't work.

Ответить
@Daijyobanai
@Daijyobanai - 05.10.2023 14:00

hullo wurld dinnae make us say it twice.

Ответить
@marcusk7855
@marcusk7855 - 04.10.2023 07:25

Loved it. Just started learning GoLang.

Ответить
@LoneIgadzra
@LoneIgadzra - 03.10.2023 21:51

Go templates drive me absolutely berserk. They are fast and built-in and customizable. So tantalizing! But the API is mind-blowingly un-intuitive, and the documentation requires about 100 reads to grok. Template inheritance? In theory yes, in practice forget about it. You need your own super complex wrapper layer on top to implement it.

Ответить
@DarkoLuketic
@DarkoLuketic - 01.10.2023 18:35

Why is everyone afraid of JS?
Take Vue, it's simpler than this htmx crap and htmx is JS too, so wtf?

Ответить
@Gusto20000
@Gusto20000 - 30.09.2023 19:17

Why does it feel like I went back 10 years and watching Angular 1 tutorial. Thank you for the video anyway, it's really informative

Edit: This is very cool, much better that Angular 1 ;) thanks

Ответить
@rodrigoetoobe2536
@rodrigoetoobe2536 - 25.09.2023 17:45

learned a lot, thanks!

Ответить
@xizt5973
@xizt5973 - 24.09.2023 23:16

3 awesome things in this video. Golang, HTMX and the beautiful scottish accent

Ответить
@anujtyagi8173
@anujtyagi8173 - 24.09.2023 05:26

More such Go tutorials appreciated. Also, group GO tutorials into a playlist like you've created for Python.

Ответить
@fersalamanca2606
@fersalamanca2606 - 23.09.2023 04:26

Amazing content man. Really looking forward to a bigger project tutorial of Go + HTMX, maybe with some ORMs and migrations? Thanks for your efforts!

Ответить
@juniorceccon
@juniorceccon - 23.09.2023 02:58

If I wanted to support a browser with no JavaScript enabled, what would be the standard solution? Should I use different endpoints for the form action and hx-post, or create if statements to check for an "hx-request" in the header before rendering the appropriate page? I tried the second option, but my handlers started to get messy.

Ответить
@MarcusHammarberg
@MarcusHammarberg - 21.09.2023 19:58

Brilliant teaching at neck breaking speed! I love it

Ответить
@acronproject
@acronproject - 18.09.2023 17:26

Thank you for this

Ответить
@MHasnain2663
@MHasnain2663 - 18.09.2023 14:49

This was so straightforward and easy to understand. Thank you!

Ответить
@garbagechannel6514
@garbagechannel6514 - 16.09.2023 19:25

this is very well explained, thank you. i love the simplicity of the whole system too

Ответить
@cristophermoreno2290
@cristophermoreno2290 - 16.09.2023 10:05

goth: go + tailwind + htmx

Ответить
@martinemsky
@martinemsky - 13.09.2023 00:34

Is there any way to add support for code hinting in .html templates when working with Golang?

Ответить
@stevemccauley
@stevemccauley - 09.09.2023 23:12

This is a fantastic video, with a lot of great Go server and template stuff. You gave a great explanation of how HTMX works, e.g. with hx-target, and the template fragment looks to be something that will be really useful. I've subscribed to see more HTMX with Go. Thanks!

Ответить
@ahmeism90
@ahmeism90 - 09.09.2023 04:38

bro cant you just close your camera while you show some code ? your picture there is huge, i cant see the code

Ответить
@giorgiobarchiesi5003
@giorgiobarchiesi5003 - 08.09.2023 19:27

Very interesting, but I can’t understand some sentences, like “to compell the go fail”.

Ответить
@Chmike13
@Chmike13 - 07.09.2023 19:05

The template is parsed every time the h1 and h2 functions are called in this simple implementation. This can be avoided

Ответить
@markclynch
@markclynch - 05.09.2023 23:00

Great video, but I’m not a fan of bootstrap with HTMX. We’ve removed so much JS through the use of HTMX and now we add a ton back in with Bootstrap

Ответить
@user-qr1ny5de4r
@user-qr1ny5de4r - 05.09.2023 11:59

Looks good, but how to secure POST request to server? CSRF or ? How to do this with HTMX-way?

Ответить
@FirdausAziz
@FirdausAziz - 05.09.2023 05:51

I appreciate that you explained certain terms or concepts in relation to Django. It really helps put things in perspective. This is one of the most understandble Go video I've seen. Thank you. I hope to see more. Especially with something along Fiber + GORM. Because from my readings that are the nearest combination to Django.

Ответить
@gaius100bc
@gaius100bc - 04.09.2023 16:35

great tutorial, subscribed

Ответить
@webdev_telugu
@webdev_telugu - 31.08.2023 18:17

The Submit text for the button is not centered when the spinner is not there. How do you handle such issues

Ответить
@00flydragon00
@00flydragon00 - 27.08.2023 16:45

Please more GOMX please! SUBBED FORE MORE GOMX!

Ответить
@D3FKONMusik123
@D3FKONMusik123 - 26.08.2023 07:11

Who calls S Print Sprint.
jesus

Ответить
@uzaahr
@uzaahr - 25.08.2023 13:52

are the go docs just something that triggers me only?

Ответить
@josesimoes3478
@josesimoes3478 - 25.08.2023 04:28

Great video!! Very concise and educational!! Exactly the level of detail I would pike to see in videos!

Ответить
@axelrudolf5491
@axelrudolf5491 - 22.08.2023 23:49

React is DEAD now... :D

Ответить