Earlier quoted context omitted.
Take a deep breath and go for a walk, there's no reason an inconsequential blog post should make you this angry.
[flagged]
How to build a website without frameworks and tons of libraries
171–180 of 270 posts
Re: How to build a website without frameworks and tons of libraries
#172Re: How to build a website without frameworks and tons of libraries
#173Earlier quoted context omitted.
Jinja is a templating framework. You can use it with ansible for example, to replace config values or secrets in a configuration file for different servers, etc
after some research i now know that, but there was no clear link or description of what the heck was going on
Re: How to build a website without frameworks and tons of libraries
#174"as simple as possible but no simpler" - (not Albert Einstein, probably) Pure HTML + CSS, with the CSS in the or inline in each html tag... this is a fine way to get something going. And then when you have two pages, you pull the CSS out to a separate file. But once you start making any site which has multiple pages of the same format, you want some kind of template system with includes and a (static page) generator.…
I tend to refactor on two, but I've heard that letting DRYness lapse until three tends to be the sweet spot in terms of likeliness to break even in effort. Although I guess pages per site is almost guaranteed to hit 3 anyway, whereas in general a block of code being used 3+ times doesn't necessarily have that same likelihood.
Re: How to build a website without frameworks and tons of libraries
#175Earlier quoted context omitted.
after some research i now know that, but there was no clear link or description of what the heck was going on
[flagged]
Re: How to build a website without frameworks and tons of libraries
#176I also use cloudflare for caching, but that's more because I wanted to tinker with it. Surely GitHub can withstand personal blog.
Re: How to build a website without frameworks and tons of libraries
#177> Mind you, Hetzner webhosting starts at 2 EUR! How crazy is that? Oh yeah? and netlify is totally free for an infinite amount of sites! how crazy is that? > We use a short Python script with exactly 45 lines of code. Including comments and blank lines. > > In summary, this is the simple toolchain for building our web: > > Developer updates index.src.html > Watchdog.py detects the file change and ... > ... renders Ji…
And I can guarantee that at some point, most of you have visited one of two web sites I created. (My company created far more than that.)
It wasn't hard to do what I did. I'm a programmer, damn it. And I hired programmers to do the same thing. None of them struggled with it.
Re: How to build a website without frameworks and tons of libraries
#178Earlier quoted context omitted.
Doesn't that make the page completely unreadable for those few who have Javascript disabled though?
You add a simple tag to the top of the body that does the right thing for them
Disabled JS != disabled CSS.
Re: How to build a website without frameworks and tons of libraries
#179Earlier quoted context omitted.
In 2005 maybe
Perhaps not 99%, and perhaps not new sites, but I'll bet those three environments combined run more than 80% of sites right now.
Re: How to build a website without frameworks and tons of libraries
#180Alright, I’m gonna be that guy. Right now, sveltekit + skeleton has absolutely blown my mind at how fast you can make a usable prototype. It’s honestly insane. You don’t even need to know svelte, really. As long as you can understand the file based routing thing, the rest is just html unless you really need more. Especially with the tailwind stuff built right in and a mostly vanilla looking theme. I’ve tried probably…
I'm not finding a "here's what you type and here's the final page" style example. Is there one? Id prefer not to install something and run through the steps just to see it.