Email or username:

Password:

Forgot your password?
Devil Lu Linvega

I see lots of folks building websites who go straight to adding build steps and markdown-to-html parsers to their website, half of those get stranded in toolchain hell in the process.

Here's an alternative that's often overlooked: Make writing html comfortable, it'll delay the need for a complex build step. It might not work for all cases, but it might help a handful few.

27 comments
Ivan Reese

@neauoire I'd be curious to hear how you personally handle stuff that's shared between pages, like nav. Build step for that? Manually duplicate?

Devil Lu Linvega

@spiralganglion that's situation specific, and per-person's abilities specific. But, if I had 10 pages? I'd copy/paste the header/footer, or use a frame.

pvh

@neauoire @spiralganglion we started with the former but the maintenance of the shared elements of raw HTML became problematic over time and we landed on an annoying markdown-to-html toolchain. There are lots of benefits to both!

Devil Lu Linvega

@pvh @spiralganglion Yeah, I'm not saying this scales or is a silver bullet, but there's a threshold where the scaffolding for hosting very little content gets in the way, especially at the start when someone is creating their personal website from the ground up.

pvh

@neauoire @spiralganglion the really nice thing about PHP was that it had a great transition from "just plain HTML" to more complex stuff. I miss that.

Tomáš

@neauoire This is so good. Gives me an idea of implementing something similar like this in ratpoison's prompt....

thanks :flan_aww:

Ed Davies

@neauoire I used to write direct HTML for all my pages, just starting with a template page for stylesheet inclusion, headers and footers, etc. When I went over to mostly posting to my blog I wrote a site-building system to do things like the next and prev links in the blog pages, the index pages and the Atom feed.

But, I still write the actual content of the pages directly as HTML. I use the Geany editor which at least adds the closing tags to elements. I also have a separate little program which resizes images and generates the anchor and img elements so people can click for a bigger view of JPGs but other than that help I don't find just writing HTML to be the problem creating pages.

@neauoire I used to write direct HTML for all my pages, just starting with a template page for stylesheet inclusion, headers and footers, etc. When I went over to mostly posting to my blog I wrote a site-building system to do things like the next and prev links in the blog pages, the index pages and the Atom feed.

Hippo 🍉

@neauoire this is cool! My first website was hand-coded in HTML, and I think it's the best way to be comfortable with the process even if you decide to use annoying build steps later.

At least you'll have a handle on what all those parsers are *doing* and the confidence to step in and say "Back off buddy, we're going to handle this part MY way!"

wvs

@neauoire I grew to like markdeep (casual-effects.com/markdeep/) until I can escape POSIX full-stack for something #FORTH -ish, but I also seemingly care less and less about scalability anymore as I long for decentralized/self-hosted/bespoke or whatever.

Tendigits

@neauoire this choice works really well for me. It’s so easy to just concatenate files together. Do nothing site builder.

Csepp 🌢

@neauoire Idunno, I'd go for a s-expression editor and edit an SXML representation instead of straight XML/HTML. :moomin_hmm:

Alexander Cobleigh

@neauoire how long have you been using this type of facility for your sites? seems like this would be quite specific to the current edition of left, but maybe i am mistaken :~

Devil Lu Linvega

@cblgh maybe 4 or 5 years, when I moved away from the lisp parser in JS and rewrote it in html, I stuck to plain html source files. I've had this sort of little gizmo in left from the beginning, even back when it was written in C.

Alexander Cobleigh

@neauoire hehe i was thinkin of electron left X) but cool to hear you've been using it for such a long time! love finding out these little personal tricks we all have but seldom speak of :>

Devil Lu Linvega

@cblgh I guess I stole it from some other application but I can't remember which. When I first started doing it, I remember I saw a text-editor that let you type like TODAY, and it would insert today's date in its place. It might have been micro, or one of those. Being able to inject entire files in place is pretty useful! It's one of those things that everyone does, but it's only seldom talked about.

Caffeine’s Heir

@neauoire this is the path I'm going through right now, cleaning up ugly markdown-generated files into simple HTML files to use as a source. It's so liberating.

Diego F. Goberna

@neauoire completely agree. You don't even need that help. Dammit, html is not black magic, and it's not a blocker/time sink. Write html/css/js manually and from scratch, for small-medium websites is more than enough.

Templates for headers/footers/x? If you can program, a basic generator without dependencies will take you one morning/day, and it will be simple enough that won't add much maintenance penalty for the future.

Go Up