Mend is a simple HTML template processor designed to, but not limited to be used to generate static websites.
The produced HTML is always consistently formatted and sorted.
Important
Mend writes into stdout instead of a file. This is not a limitation, it's an important advantage.
Download the latest release or install via the command line with:
go install github.com/bbfh-dev/mend
Run mend --help
to display usage information.
Usage:
mend <options> [html files...]
Commands:
Options:
--help, -h Print help and exit
--version, -V Print version and exit
--input, -i <value> Set global input parameters
--indent <value> Set amount of spaces to indent with. Gets ignored if --tabs is used
--tabs, -t Use tabs instead of spaces
--decomment Strips away any comments
These are some important development notes, informing about parts of the project that need to be polished out.
Expressions are very clunky.
- In code they require every node to implement its own processing while referencing a global function that handles them. Basically, it's just a big bowl of spaghetti. There's gotta be a better way of doing them.
- The way expressions are parsed is very primitive, it could cause unexpected errors/behavior when using bad syntax.