{"id":16156877,"url":"https://github.com/saghul/njk","last_synced_at":"2025-03-18T20:30:46.519Z","repository":{"id":49531952,"uuid":"376738647","full_name":"saghul/njk","owner":"saghul","description":"Powerful portable templating in less than 1MB","archived":false,"fork":false,"pushed_at":"2023-06-30T08:13:41.000Z","size":551,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T12:06:37.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saghul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-14T07:23:47.000Z","updated_at":"2025-02-18T14:32:12.000Z","dependencies_parsed_at":"2024-10-27T19:11:58.730Z","dependency_job_id":"8484ee63-d708-4e67-85ec-b54c151eb2e8","html_url":"https://github.com/saghul/njk","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fnjk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fnjk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fnjk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fnjk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saghul","download_url":"https://codeload.github.com/saghul/njk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950792,"owners_count":20373664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T01:46:52.828Z","updated_at":"2025-03-18T20:30:46.117Z","avatar_url":"https://github.com/saghul.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# njk: powerful portable templating\n\n*njk* is a single binary command line application designed to provide powerful\ntemplating capabilities using environment variables.\n\nIts primary use is to build configuration files at boot time in containerized\nenvironments.\n\n*njk* stands on shoulders of giants. It uses [Nunjucks](https://mozilla.github.io/nunjucks/)\nas the templating engine and [QuickJS](https://bellard.org/quickjs/) as the\nruntime. The result is **a statically linked binary which is \u003c 1MB**.\n\n**NOTE:** Windows is not currently supported.\n\n## Usage\n\n```bash\n./njk /path/to/template-file.njk \u003e /config/your-config-file\n```\n\nExample:\n\n```\nHello, {{ env.USER }}\n```\n\n## Documentation\n\nCheck the [Nunjucks documentation on templating](https://mozilla.github.io/nunjucks/templating.html).\n\n**NOTE:** Templates get a single context variable: `env` containing the environment\nvariables.\n\n## Similar tools\n\n* [frep](https://github.com/subchen/frep)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaghul%2Fnjk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaghul%2Fnjk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaghul%2Fnjk/lists"}