fmj/readme.md
2026-01-29 19:16:21 -06:00

1.2 KiB

fmj

fmj is an rss feed generator. it takes a directory of config files that describe the posts and outputs xml.

the file format is more concise than handwriting xml:

title = s/discord/???
description = on replacing discord
link = https://bear.o7moon.dev/sdiscord/

anything that isnt one of the defined options is a comment

usage examples:

  • fmj tests/examples \\- will output to stdout
  • fmj tests/noconf filename.xml will output to filename.xml
  • fmj tests/defaultauthor will output to rss.xml

building / platform support:

this repo is a port of the previous c implementation to tomo, which is a relatively recent language and has some rough edges (the requirement to write \\- instead of - for stdout comes from a conflict with the language's built-in argument parsing) but ive found it to be nicer than c for this small program and i used it as a chance to both learn a new language and make a small improvement to the c implementation (this one handles utf-8! due to tomo's Text type also handling it).

fmj.tm can be built with the tomo compiler like this, if you have it installed:

tomo -e fmj.tm