No description
Find a file
David Krause (enthus1ast) d1352b45ae wip on ref obj
Signed-off-by: David Krause (enthus1ast) <krause@biochem2.uni-frankfurt.de>
2024-09-02 16:21:24 +02:00
src wip on ref obj 2024-09-02 16:21:24 +02:00
.gitignore wip 2024-08-05 12:59:39 +02:00
formatja.nimble wip on ref obj 2024-09-02 16:21:24 +02:00
readme.md Signed-off-by: David Krause <enthus1ast@users.noreply.github.com> 2023-01-20 17:27:18 +01:00

formatja

A simple runtime string interpolation library, that leverages nimjas lexer.

var formatSQLITE = "{{documentName}}__{{dateStr}}.sqlite"
let res = format(formatSQLITE, {"documentName": "FOO", "dateStr": "DATESTR"})
assert res == "FOO__DATESTR.sqlite"
{{ some }}  a variable
{# a comment #} a comment
{% ignored %} ignored for now