rocher / mold

Meta-variable Operations for Lean Development
https://rocher.github.io/mold
MIT License
4 stars 0 forks source link

How does this template engine fit into Ada? #3

Open Joebeazelman opened 4 months ago

Joebeazelman commented 4 months ago

Very nice project and may be useful. It appears to be a standalone template processing tool, but aside from being written in Ada, what's Ada about it? The documentation says it can be included as a library, but the API seems limited to indirect processing using files.

rocher commented 4 months ago

The documentation says it can be included as a library, but the API seems limited to indirect processing using files.

That refers to mold_lib: it's an Ada library, so it can be included in an Ada project using Alire.

There are plans not only to process files, but also to allow in-memory processing (variable replacement in strings). Also, text filters can be a completely separate library.