Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.84 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.84 KB

🔩 mend

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.

📥 Installation

Download the latest release or install via the command line with:

go install github.com/bbfh-dev/mend

⚙️ 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.

  1. 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.
  2. The way expressions are parsed is very primitive, it could cause unexpected errors/behavior when using bad syntax.

@bbfh-dev