๐ฉ mend.html
Mend is a simple HTML template processor designed to, but not limited to be used to generate static websites.
Refer to the Wiki for in-depth tutorial.
๐ฅ Installation
Download the latest release or install via the command line with:
go install github.com/bbfh-dev/mend.html
โ๏ธ Usage
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
๐ Developer notes
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.
โ @bbfh-dev