Re:Show HN: Shite: The little hot-reloadin' static site make...
by ramrunner0xff on Tuesday January 24, 2023 @04:39PM
(#34510842)
I haven't really, because the only place where i needed valid html generated mostly by the program is on the navbar , the taglist etc. the main docu is kinda plaintext on a div when rendering html. But i will go back and investigate your idea since it would be elegant and rc supports normal here documents. for example
changes all occurrences of $1 to $2 in file $3.
:)
[ Parent
| on HN ]
Re:Show HN: Shite: The little hot-reloadin' static site make...
by adityaathalye on Wednesday January 25, 2023 @02:56AM
(#34515627)
Yeah, I noticed that `ed` invocation in the rc manual. I'm tempted to find use-cases for it. That way I can lay claim to having used the one true editor :)
In general, I like making programs out of declarative constructs and/or literal data, because it's so much easier to do "local reasoning" with those things, as compared to imperative procedures, or heaven forefend, live objects.