|
|
|
|
|
by ramrunner0xff
1245 days ago
|
|
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 ed $3 <<EOF
g/$1/s//$2/g
w
EOF
changes all occurrences of $1 to $2 in file $3.
:) |
|
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.