diff --git a/CHANGELOG.md b/CHANGELOG.md index c239358..e56069d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,6 @@ All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines. - - - -## [v0.2.0](https://gitlab.com/TECHNOFAB/soonix/compare/a8acaf7143572dac1bc02b124e593d68b5bdddc7..v0.2.0) - 2026-01-28 -#### Features -- (**generator**) add Mustache - ([26e79ed](https://gitlab.com/TECHNOFAB/soonix/commit/26e79ede19e815a619a3878ffd5fa6b757da50c4)) - asimon -#### Bug Fixes -- (**generator**) replace gotmpl with gomplate - ([a8acaf7](https://gitlab.com/TECHNOFAB/soonix/commit/a8acaf7143572dac1bc02b124e593d68b5bdddc7)) - asimon -#### Miscellaneous Chores -- (**module**) remove "template" generator type - ([481b9c4](https://gitlab.com/TECHNOFAB/soonix/commit/481b9c4a38455ba6d8502029894f9223ab2545d5)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB) - -- - - - ## [v0.1.0](https://gitlab.com/TECHNOFAB/soonix/compare/25cc087b1da8dda965d47283c120a726b84ad6cf..v0.1.0) - 2026-01-05 #### Features - add nice to have `devshellModule` to soonix module for easy import - ([add807e](https://gitlab.com/TECHNOFAB/soonix/commit/add807ef8980197bbd06652a36d937b93b2a31c7)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB) diff --git a/README.md b/README.md index 68c2747..4f95e22 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,6 @@ use the `devshellModule` for easy integration, see the docs for more. - **`derivation`**: Use existing Nix derivations as file content - **`gomplate`**: Advanced Go template rendering via gomplate - **`jinja`**: Python Jinja2 template rendering -- **`mustache`**: Mustache template rendering ## Docs diff --git a/docs/index.md b/docs/index.md index 7576c2f..5d45fe9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -21,7 +21,6 @@ Soonix helps you: - **derivation**: Use existing Nix derivations as file content - **gomplate**: Advanced Go template rendering via gomplate - **jinja**: Python Jinja2 template rendering -- **mustache**: Mustache template rendering ### Automatic File Management diff --git a/lib/lib.nix b/lib/lib.nix index 3e6005d..8bcfff9 100644 --- a/lib/lib.nix +++ b/lib/lib.nix @@ -100,21 +100,6 @@ } '' python ${renderScript} > $out ''; - - mustache = { - name, - opts, - data, - }: let - inherit (opts) template; - mustache = opts.mustache or pkgs.mustache-go; - dataJson = writeText "template-data.json" (builtins.toJSON data); - in - runCommand name { - buildInputs = [mustache]; - } '' - mustache ${dataJson} ${template} > $out - ''; }; buildAllFiles = files: diff --git a/lib/module.nix b/lib/module.nix index 91ac9ba..53017d9 100644 --- a/lib/module.nix +++ b/lib/module.nix @@ -30,7 +30,7 @@ in { }; generator = mkOption { - type = types.enum ["nix" "string" "derivation" "gomplate" "jinja" "mustache"]; + type = types.enum ["nix" "string" "derivation" "gomplate" "jinja" "template"]; description = '' Which engine to use for content generation. ''; diff --git a/tests/fixtures/mustache_template b/tests/fixtures/mustache_template deleted file mode 100644 index a4d8ee1..0000000 --- a/tests/fixtures/mustache_template +++ /dev/null @@ -1 +0,0 @@ -Hello {{hello}} diff --git a/tests/soonix_test.nix b/tests/soonix_test.nix index 0cfa1b8..8198e4b 100644 --- a/tests/soonix_test.nix +++ b/tests/soonix_test.nix @@ -30,12 +30,6 @@ data.hello = "world"; opts.template = ./fixtures/jinja_template; }; - mustache = { - output = "mustache"; - generator = "mustache"; - data.hello = "world"; - opts.template = ./fixtures/mustache_template; - }; }; in { suites."Soonix Tests" = { @@ -59,9 +53,6 @@ in { assert "-f ${finalFiles}/jinja" "should exist" assert_file_contains ${finalFiles}/jinja "Hello world" - - assert "-f ${finalFiles}/mustache" "should exist" - assert_file_contains ${finalFiles}/mustache "Hello world" ''; } {