Тёмный

A Very Simple Tech Stack 

Awesome
Подписаться 40 тыс.
Просмотров 69 тыс.
50% 1

Building a small app with HTMX, Go Fiber and Uno CSS.
💬 Topics:
- What is HTMX;
- Working with Go Fiber;
- What is Atomic CSS;
- HTMX Architecture;
- Alternative to JS frameworks;
- Easy to use tech stack;
GitHub Repo - github.com/awesome-club/htmx-go
Patreon - / awesomeclub
#javascript #htmx #go

Опубликовано:

 

6 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 194   
@adidibrani
@adidibrani 10 месяцев назад
In 2024 we'll go back to HTML and CSS
@awesome-coding
@awesome-coding 10 месяцев назад
I hope so! :D
@whoknows3679
@whoknows3679 10 месяцев назад
When we stop using css and html?
@Soleryth
@Soleryth 10 месяцев назад
​@@whoknows3679 React with JSX, to some extend Angular and Vue, where you don't directly control your data from the tags but rather in functions like onMount, where you need to load your data using a fetch, then register it in a state objetc, that triggers a re-render of your HTML template, etc. CSS Bootstrap and it's alternative have been overwhelming, but in the last years we see a come back to utility classes like tailwind ( tho it's still a script rather than simple style sheet file )
@maxlife459
@maxlife459 10 месяцев назад
return to monke
@hb50777
@hb50777 10 месяцев назад
Needed..😅
@tanishkhare1398
@tanishkhare1398 10 месяцев назад
Very nice video overall, but would've liked if you showed the results at last and how difficult it is to deploy such a app.
@awesome-coding
@awesome-coding 10 месяцев назад
I'll work on a video showcasing the end result. It is very easy to deploy this app - at the end of the day it is just a Go program.
@d2vin
@d2vin 10 месяцев назад
@@awesome-coding a simple click through of what it looks like or a GitHub link would be much appreciated! Subbed.
@dandogamer
@dandogamer 10 месяцев назад
It should be incredibly easy to deploy as its just a binary. You can stick it onto any server running on any OS
@verified_tinker1818
@verified_tinker1818 9 месяцев назад
The ease of deployment is probably the main reason to use this stack.
@adavidmezei
@adavidmezei 9 месяцев назад
@@verified_tinker1818 I prefer Tailwind, PHP and HTMX
@akindurosegun2459
@akindurosegun2459 6 месяцев назад
I used this stack recently, It was so easy that it felt like something was wrong!
@volt8399
@volt8399 8 месяцев назад
Thank you so much for this, you have reassured me on how I can use this stack on my own projects. I also really like unocss interactive page super newbie friendly.
@awesome-coding
@awesome-coding 8 месяцев назад
Glad it was helpful! Thank you so much for the Super Thanks!
@vic_shine
@vic_shine 10 месяцев назад
awesome explanation, thanks ❤ hope this continues with more complex tasks for explaining more of htmx + Go 😊
@awesome-coding
@awesome-coding 10 месяцев назад
Glad you liked it!
@woodmanmade
@woodmanmade 9 месяцев назад
Literally playing with the stack right now (well with Tailwind instead) and it's really quite nice!
@awesome-coding
@awesome-coding 9 месяцев назад
Nice! I love the simplicity of Go and HTMX combined.
@patrickren7395
@patrickren7395 9 месяцев назад
Template engine using custom html props are not new, but adding the ability to make XHR request is pretty cool
@jd4codes
@jd4codes 9 месяцев назад
Beautiful!
@awesome-coding
@awesome-coding 9 месяцев назад
Thank you! Cheers!
@vojtastruhar8950
@vojtastruhar8950 8 месяцев назад
The thumbnail looks like a Fireship video. Good job
@soundrightmusic
@soundrightmusic 10 месяцев назад
love it
@narrei666
@narrei666 10 месяцев назад
pretty infuriating that we didn't see actual result website in the video, lol
@awesome-coding
@awesome-coding 10 месяцев назад
ah.. sorry about that. I tried to keep the video as short and tight as possible, and I forgot to showcase the result 🤦‍♂️
@Niksorus
@Niksorus 10 месяцев назад
Great intro! I wish you'd have shown what the webpage actually looks like with this project though
@awesome-coding
@awesome-coding 10 месяцев назад
Thank you! I know - sorry - completely forgot to showcase the result.🤦‍♂️
@pss_crs
@pss_crs 10 месяцев назад
this stack is 😘, please do alot of go content
@awesome-coding
@awesome-coding 10 месяцев назад
More Go content to come!
@eduardolagoeiro1810
@eduardolagoeiro1810 9 месяцев назад
How do you recommend to componentize the html in go? I think go/html is missing a lot of tooling (great IDE integration, create and use components, typing, etc...)
@paullachaud1689
@paullachaud1689 8 месяцев назад
Look into templ
@Chisegh
@Chisegh 8 месяцев назад
The idea of partials, which are essentially components, has been around in server rendered apps for decades.
@tcurdt
@tcurdt 10 месяцев назад
It's either just the tightly coupled way we used building things 20y ago. Or it's just another less scalable angle of Phoenix Liveviews. I haven't made up my mind yet.
@awesome-coding
@awesome-coding 10 месяцев назад
I think this is a fair assessment :D
@TechBuddy_
@TechBuddy_ 10 месяцев назад
Yes ( for the first one ) and no htmx is just the frontend part which lets you choose whatever backend tech you choose. Yes other solutions have little improvements in dx but I think we can achieve that with very minimal js
@flipflap4673
@flipflap4673 10 месяцев назад
Nice! How do you prevent end users from modifying the htmx code?
@awesome-coding
@awesome-coding 9 месяцев назад
Hey! I guess you have the same constraints as you would with a SPA. The HTML is served from the server (preferably already sanitised) The user might change that HTML, but your server will still perform validations and make sure the requests are valid when interacted with the page.
@Woeden
@Woeden 10 месяцев назад
HTMX should the the standard, that's so cool.
@cabanford
@cabanford Месяц назад
Now if only someone could terminate the disaster that is CSS and replace it with something that WORKS - we'd be all happy 😊
@awesome-coding
@awesome-coding Месяц назад
Call me crazy, but I actually like CSS 😅
@TechBuddy_
@TechBuddy_ 10 месяцев назад
Heyy the new animations are cool I love em ❤ Only thing I will suggest is make the videos as dense as possible but don't save that extra 30 seconds man show the f ing output 😅
@awesome-coding
@awesome-coding 10 месяцев назад
I agree - I dropped the ball on this one 😅🤦‍♂️
@KrishnanshAgarwal
@KrishnanshAgarwal 6 месяцев назад
which editor and OS you use ?
@patrickren7395
@patrickren7395 9 месяцев назад
Simplicity is great, how about powerfullness? For instance, components & rich interactivity. React is a library but usually it's self hosted after bundling, seems there's no bundling support in htmx & I have to include a script that points to a MDN source?
@Chisegh
@Chisegh 8 месяцев назад
You have partials for server rendered apps, which are essentially components. Interactivity works great in HTMX. The difference to frontend frameworks like react is that it is server driven instead of relying on client state. You can download the MDN file and include it as a static file in your project, no need to bundle it.
@TedoHamTole
@TedoHamTole 10 месяцев назад
more content on this stack please.
@awesome-coding
@awesome-coding 10 месяцев назад
More to come!
@MikeNugget
@MikeNugget 10 месяцев назад
Waiting for UnoCSS UI kit video 😊
@phoenicianathletix2866
@phoenicianathletix2866 10 месяцев назад
UnoCSS vs picocss for fastest minimal CSS no JS dependencies?
@dustsucker4704
@dustsucker4704 3 месяца назад
Getting started with only a webapp i think this Stack is one of the best. However if you have more than one applications or need an API for your App this aproach unfortunatly does not scale that Well as you will need a JSON or XML endpoint at some point and handling json and HTML instead of just json could prove to be quite time consuming.
@_ultraviolet
@_ultraviolet 2 месяца назад
the entire point of htmx is that it replaces json
@boldandbrad
@boldandbrad 2 месяца назад
what font are you using in your code screencaps?
@awesome-coding
@awesome-coding 2 месяца назад
Hey! That's the default IDE theme from IntelliJ IDEA
@emerelle3535
@emerelle3535 Месяц назад
I wonder how those server-event stuff works and If I can do that with php.
@owenwexler7214
@owenwexler7214 5 месяцев назад
Is there any way to self-host the HTMX and UnoCSS packages? Would rather not rely on a CDN for this. Thanks in advance!
@awesome-coding
@awesome-coding 5 месяцев назад
Sure thing - you can easily download them locally, and pack them with your application.
@techs7296
@techs7296 10 месяцев назад
Seems we will complete the circle. Html css js to MVC to SPA to SRA to html css js
@awesome-coding
@awesome-coding 10 месяцев назад
Try, fail, learn 😅
@TechBuddy_
@TechBuddy_ 10 месяцев назад
But this time with better client side reactivity without a billion gigs of js
@hadavid2454
@hadavid2454 10 месяцев назад
I am trying to use the Fetch command in go, but it is undefined for me. Anyone know what the issue might be?
@scott_mckendry
@scott_mckendry 10 месяцев назад
The HUG stack 🥰
@awesome-coding
@awesome-coding 10 месяцев назад
Haha nice! I missed a good thumbnail opportunity 😅
@massy-3961
@massy-3961 10 месяцев назад
Wow the random Fiber drop is surprising
@awesome-coding
@awesome-coding 10 месяцев назад
Trying to mix things up a bit :D
@DanelonNicolas
@DanelonNicolas 10 месяцев назад
ok. you got me. it is a wonderful video but where is the repo?
@awesome-coding
@awesome-coding 10 месяцев назад
No repo for this one - sorry 🫠 I'm working on an extend version for this stack, and I'll make that project available on GitHub.
@aduntoridasful
@aduntoridasful 9 месяцев назад
unocss, picocss or tailwindcss?
@awesome-coding
@awesome-coding 9 месяцев назад
It's not much of a difference to be honest. It's mostly a matter of the DX you prefer. For big / established projects you should probably go with Tailwind since it is the most established.
@Randomguy48279xyz
@Randomguy48279xyz 9 месяцев назад
👍
@bobweiram6321
@bobweiram6321 9 месяцев назад
The guy on the thumbnail looks like he needs more fiber.
@awesome-coding
@awesome-coding 9 месяцев назад
Classic!
@greencoderstamil
@greencoderstamil 10 месяцев назад
Where is the demo of the project ?😢
@awesome-coding
@awesome-coding 10 месяцев назад
Sorry - there isn't one :( I'm working on a more in depth video with this stack, and I'll make that project public.
@melanovapedia7924
@melanovapedia7924 10 месяцев назад
Thanks, but I personally prefer you use default pkg golang. I am newbie.
@awesome-coding
@awesome-coding 10 месяцев назад
Fair enough!
@WilsonSilva90
@WilsonSilva90 9 месяцев назад
Where are ApiKey, Fetch and Stock defined?
@awesome-coding
@awesome-coding 9 месяцев назад
Hey! in this specific small example you could save them in the stocks.go file. In a larger project, I would advise storing Fetch and Stock under a "domain" directory, which will contain all your domain related types. The ApiKey should be stored in a properties file.
@bsljth
@bsljth 15 дней назад
We need CSS-in-Go. 😂
@1998goodboy
@1998goodboy 9 месяцев назад
where's the git repo? 🤔
@grinsk3ks
@grinsk3ks 10 месяцев назад
I don't really care what language to use. In my opinion a good stack is when you write your component once. Writing it in BE land for ssr and a second time in JS for interactivity sucks.
@awesome-coding
@awesome-coding 10 месяцев назад
Good point!
@geelemo
@geelemo 10 месяцев назад
How do you componentize in htmx
@matthiaslangbart9841
@matthiaslangbart9841 9 месяцев назад
On the frontend? You don't have to. All you do in HTMX is send a request, expect HTML, maybe with further HTMX included, and replace the content of an identified container with the new HTML, or prepend / append the new HTML to the existing HTML in that container. At the end of the day it's what you request that defines the HTML you receive.
@geelemo
@geelemo 9 месяцев назад
@@matthiaslangbart9841 it's going to be too much code in one file
@vasiovasio
@vasiovasio 10 месяцев назад
This type of behavior can be easily achieved with Unpoly too.
@awesome-coding
@awesome-coding 10 месяцев назад
Didn't know about this one - thanks for the suggestion!
@Kats0unam1
@Kats0unam1 10 месяцев назад
Why not Go std lib, htmx and tailwind?
@awesome-coding
@awesome-coding 10 месяцев назад
Isn't Fiber's DX a bit better?
@nanonkay5669
@nanonkay5669 9 месяцев назад
​@@awesome-codingGo devs normally swear by the standard lib lol. But you should do a video that uses the Go + HTMX + Tailwind/UnoCSS + Alpine.js
@RobertFletcherOBE
@RobertFletcherOBE 4 месяца назад
fiber is slightly faster, but std would be a good choice too.
@grantfarwell425
@grantfarwell425 10 месяцев назад
Is there a github for this?
@awesome-coding
@awesome-coding 10 месяцев назад
Sorry - it isn't :( I'm working on a more in depth video with this stack, and I'll make that project public.
@techs7296
@techs7296 10 месяцев назад
Im getting f**** hearing a new stack every single week
@awesome-coding
@awesome-coding 10 месяцев назад
I believe you.
@scarlatum
@scarlatum 10 месяцев назад
So, PHP but worse?
@awesome-coding
@awesome-coding 10 месяцев назад
😂 can there be something worse than PHP?
@MarkPanado
@MarkPanado 10 месяцев назад
Why not just load the CSS file directly? Instead of calling it first via JavaScript 4:25
@seanknowles9985
@seanknowles9985 10 месяцев назад
Can we create PWA with htmx?
@awesome-coding
@awesome-coding 10 месяцев назад
Sure thing!
@seanknowles9985
@seanknowles9985 10 месяцев назад
@@awesome-coding would be ace to get a tutorial on the golang htmx example.
@jorgeguberte
@jorgeguberte 9 месяцев назад
Remember, folks: KISS! Rock OOOOOOON!!! ✌✌
@axelramirezludewig306
@axelramirezludewig306 10 месяцев назад
Bro, this is how they made websites back in the 2008 days, what the actual fk.
@awesome-coding
@awesome-coding 10 месяцев назад
We call this "progress"!
@axelramirezludewig306
@axelramirezludewig306 10 месяцев назад
​@@awesome-coding Yeah, at least coming from oldschool PHP I can recognize all this patterns lol, btw do you recommend go fiber?
@awesome-coding
@awesome-coding 10 месяцев назад
@@axelramirezludewig306 Fiber has great DX, especially if you are coming from the NodeJS / Express world. Go has a bunch of other great advantages, so, all in all, it's a pretty good option if you are not "married" with another framework already.
@abdelhameedhamdy
@abdelhameedhamdy 10 месяцев назад
why uno and not tailwind css !
@awesome-coding
@awesome-coding 10 месяцев назад
Tailwind CSS could work for certain as well!
@allan_archie
@allan_archie 10 месяцев назад
My gut doesn't like htmx.
@awesome-coding
@awesome-coding 10 месяцев назад
Why is that? :D
@IvanRandomDude
@IvanRandomDude 10 месяцев назад
Go might be simple as a language but that actually leads to doing web development in it harder . Even if you use some framework (like Fiber) you are most likely going to miss a lots of features that exist in other big feature-rich frameworks like Laravel, Django, NextJs etc... Because of that I find it harder to do web dev in go regardless of it's simplicity. The mentality of go community that all you need is standard library makes it often very hard because you have do to a lots of things manually while in other languages/frameworks you have those problems already solved. So in that regard go is not freaking easy at all. It's very hard to do it right because you have to do it yourself.
@UTJK.
@UTJK. 10 месяцев назад
Given its charactestics, I think that Go should be used only by experienced developers when they don't have an equally performant alternative.
@massy-3961
@massy-3961 10 месяцев назад
Considering you named a bunch of battery included frameworks, then say Fiber, which is a minimalistic approach like Express or Flask, yeah no duh your gonna require either making what you are looking for or importing it. It’s the same with Express and Flask, you want an ORM, import it, database? Import it. It’s not that complicated. Not to mention if you really want a kitted batteries included framework, there are many MVC frameworks for Golang.
@rw_panic0_0
@rw_panic0_0 10 месяцев назад
this is not a correct comparison since you are comparing a minimal http library (fiber) with batteries included frameworks
@DavidThorpe
@DavidThorpe 10 месяцев назад
His point is that Go doesn’t seem to have a batteries included framework like Laravel or Rails that is heralded by its own community. OP is spot on. Go is fantastic and very powerful and I use it daily for work in a larger org, but if I wanted to build something for a startup I’d reach for it only if I hit a problem with compute speed or needed something small and isolated that performed very fast.
@massy-3961
@massy-3961 10 месяцев назад
@@DavidThorpe well even if the community doesn’t herald one framework (mainly because the framework ecosystem is extremely diverse and everyone chooses a different framework) there are still many batteries included frameworks. Go Buffalo, Go Appy, uTron, and my personal favorite, Goyave. Now these aren’t popular because Go is very unopinionated in nature and developers rather build their own system designs, not to mention go is primarily a micro service and rest api builder, and battery included frameworks are typically really overkill for most jobs. But the stuff is there, saying Golang is hard because it’s lacking in frameworks is just wrong.
@djthdinsessions
@djthdinsessions 8 месяцев назад
**OWASP Top 10 has entered the room** 🤣
@awesome-coding
@awesome-coding 8 месяцев назад
ha! I posted a video about Auth JS where I was complaining that auth & security are really hard. And then this guy wrote a comment saying Auth is not hard at all. It's not hard until the first security audit 😅
@djthdinsessions
@djthdinsessions 8 месяцев назад
@@awesome-coding Or until you dont do audit at all and then got hacked suddenly 🤣
@hoccoban
@hoccoban 6 месяцев назад
I think go-chi is a better choice.
@awesome-coding
@awesome-coding 6 месяцев назад
You might be right - I don't have any experience with chi, but I'll look into it.
@abhishekbu1087
@abhishekbu1087 10 месяцев назад
How is jwt authentication handled using htmx?
@XXnickles
@XXnickles 10 месяцев назад
You will be looking for back-end authentication. Perhaps you don't even need jwt depending on your back-end
@harryphillipsdev
@harryphillipsdev 10 месяцев назад
PHP with Laravel Livewire needs the same if not more of the attention that HTMX is getting
@awesome-coding
@awesome-coding 10 месяцев назад
Thanks for the suggestion! I'll give it a try!
@sujezz
@sujezz 10 месяцев назад
@@awesome-coding I'd say you should start with Symfony. Laravel, phpbb and others straight up include base of Symfony (request/response classes) and sometimes more. I get that Laravel is shiny and stuff. But being recently myself at php conference in EU there's been 0 talk about laravel and only symfony. This conference was like 1.5-2k people. 2 weeks later was laravel conf with like 29 ppl interested on fb...
@hasukoorachi1505
@hasukoorachi1505 10 месяцев назад
Phoenix with LiveView too !
@TechBuddy_
@TechBuddy_ 10 месяцев назад
Yeah they are amazing I have used them but the only problem is I can't use go or rust or any other backend language soooooo ( I hate to say this 😅 ) it depends on the use case
@can_pacis
@can_pacis 10 месяцев назад
It’s PHP tho 🤢
@thedelanyo
@thedelanyo 10 месяцев назад
I'll not write htmx and tailwind css together 😅😅😅
@awesome-coding
@awesome-coding 10 месяцев назад
:)) why?
@zayttoven
@zayttoven 10 месяцев назад
Its all good until fiber... Go was designed to be useful with the std lib and if needed, 3rd party libs. Frameworks, especially fiber, are an overkill to such a language like go.
@Microphunktv-jb3kj
@Microphunktv-jb3kj 8 месяцев назад
wonder if htmx is made by the same people who made underscore and lodash? same white/blue theme :DD always makes me think if thoies are invented by finns/estonians lol ; )
@Stefan-bs6ty
@Stefan-bs6ty 8 месяцев назад
Now just dump UnoCSS, use plain and proper CSS and good HTML markup, and we're back on the effectiveness track. 😅
@awesome-coding
@awesome-coding 8 месяцев назад
Fair enough 😂
@Stefan-bs6ty
@Stefan-bs6ty 8 месяцев назад
@@awesome-coding Rereading my comment, it sounds more harsh than planned. 🫢 However I really meant it: Maybe try good markup and CSS next time, too? Markup for the WHAT, and CSS for the HOW. The goal is to make the markup fully separated from layout and design.
@knolljo
@knolljo 8 месяцев назад
A classless CSS-Framework would be even more minimal
@awesome-coding
@awesome-coding 8 месяцев назад
A no class, no css CSS Framework :D
@ashleyfreebush
@ashleyfreebush 10 месяцев назад
Omg kill me now😂
@vice-108
@vice-108 10 месяцев назад
Bend over then
@ParanoYa1117
@ParanoYa1117 9 месяцев назад
I wonder how one can put so much work into such a video and not provide the full source code... If you follow this tutorial step by step, your code is just not going to work, because the creator left out some details in the implementation... I found it sketchy from the beginning, that the resulting site was never shown... Really strange, since the video in itself is made pretty well and has a fast pace, so you don't waste time with useless explanations
@awesome-coding
@awesome-coding 9 месяцев назад
Hey! Thanks for reaching out. I spent a bit of time recreating the code. Here is the GitHub url - github.com/awesome-club/htmx-go. Hope this helps! :)
@KhaledKimboo4
@KhaledKimboo4 9 месяцев назад
There is more code in your node_modules folder than the entire linux code base.... to print hello world
@awesome-coding
@awesome-coding 9 месяцев назад
While this might be true in most cases, you picked one of the only videos where I created a project without a node_modules folder :)) On top of that, this is a pretty irrelevant metric as long as the build time is really snappy, and the output delivered to the browser in the end is small.
@KhaledKimboo4
@KhaledKimboo4 9 месяцев назад
@@awesome-coding you didn't get my point, I'm in favor of htmx, I'm using it currently in all my projects, node_modules are what htmx replaces . Love your content, keep up 👌
@awesome-coding
@awesome-coding 9 месяцев назад
@@KhaledKimboo4 Ah, got it now - sorry about the misunderstanding. Thanks for the feedback!
@wikittywhacktv
@wikittywhacktv 10 месяцев назад
i don't get why people are mad about new tools and tech stacks coming out... nobody is forcing you to use them, you can stick with you own tools and let people who love to try new things have their fun!
@awesome-coding
@awesome-coding 10 месяцев назад
You are 100% right. To each his own!
@krellin
@krellin 5 месяцев назад
after 20 years of garbage frameworks and tools people finally figure out what backend is supposed to do and what frontend is supposed to do i thought it will never happen
@bobweiram6321
@bobweiram6321 9 месяцев назад
The reason for the extreme proliferation of JavaScript frameworks is due to the unpleasant nature of JavaScript programming. What developers really want is an alternative to JavaScript, not another framework. It's why there's so much excitement over Webassembly.
@sourabhsingh4515
@sourabhsingh4515 6 месяцев назад
another tool creating unnecessary buzz among new developers 🤦‍♂🤦‍♂. I do think this tool can be useful if you want to create a small scale application as various of the important features are missing from this tool like error handling and etc and even if they are they are not as easy as the traditional try/catch in js or js frameworks and it is very crucial tha in the production level you can understand code and can change it very easily if required but if we use this tool in any large scale application like any social media platform application, it would be a huge mess writing 5-6 lines only filled with single html tag and we will be writing comments more than the actual code as the code readability will be a major issue. First of all you are trying to say that the web can work without js which is completly bs and just a stratergy to create a buzz among the lazy newbie deevlopers and nothing. I think this tool can do very good in it's own level but the audience it targeting and the kind of stratergy it is using to make it popular is not good and will result in bad outcome in a long run. That's what I think, your openion can be completely different and I always respect a different valid openion until and unless you are just a fanboy or a hater. 😄
@ukrainetoday960
@ukrainetoday960 8 месяцев назад
Go is easy? Lol what???))
@awesome-coding
@awesome-coding 8 месяцев назад
Isn't it?
@ukrainetoday960
@ukrainetoday960 8 месяцев назад
@@awesome-codingNope - python, js, php, maybe Ruby is easy - golang is not easy language
@awesome-coding
@awesome-coding 8 месяцев назад
@@ukrainetoday960 I'm guessing it's all relative then. I would definitely put Go in the "easy" category, but yes, compared to JS any language would be considered "difficult"
@ug1131
@ug1131 10 месяцев назад
Htmx is totally a good choice but still has some security issues (xss), I hope the team behind it get it all working
@hasukoorachi1505
@hasukoorachi1505 10 месяцев назад
It doesn't have any issue with XSS since it's your server responsibility to sanitize the returned HTML You can also simply use the CSP header which is a native protection against those types of attacks HTMX will just put the received HTML where you want it, so there is no security issue if the received HTML is already secured
@seancooper5007
@seancooper5007 10 месяцев назад
Just don't return unsanitised user input and your good go. You do need to remember to implement CSRF though.
@awesome-coding
@awesome-coding 10 месяцев назад
@hasukoorachi1505 exactly!
@ug1131
@ug1131 10 месяцев назад
@@hasukoorachi1505 I wouldn't really label it as an "issue" but something like react ensures by default that no html or js will be evaluated, still my point of view and what you just suggested is also worth noting, thanks btw
@ooogabooga5111
@ooogabooga5111 9 месяцев назад
Its so stupid lmaoo, they wrote js for you. Doesn't mean you have a better performing website. xD
@EricDBrown
@EricDBrown 5 месяцев назад
You lost me at Go Fiber.
@awesome-coding
@awesome-coding 5 месяцев назад
😅 it is not that bad.
@vyrekxd4971
@vyrekxd4971 10 месяцев назад
chi + base go http >>>
Далее
The HATE Stack - Simple and Efficient
8:17
Просмотров 51 тыс.
HTMX: 3 IRL Use Cases
18:33
Просмотров 106 тыс.
СТРИМ ► Elden Ring - Shadow of the Erdtree #1
4:21:06
My Initial Impresson Of Go
12:39
Просмотров 73 тыс.
HTMX for Impatient Devs
8:33
Просмотров 45 тыс.
Is HTMX a Joke??
32:15
Просмотров 17 тыс.
Never install locally
5:45
Просмотров 1,6 млн
Web Developer Roadmap (2024) - Everything is Changing
25:02
СТРИМ ► Elden Ring - Shadow of the Erdtree #1
4:21:06