Build and packaging library
  • Python 48.7%
  • Makefile 37.5%
  • Shell 13.8%
Find a file
Jan Lindemann 7edf5a4c26
cmds.projects.lib.templates: Add module

Add tmpl_render(), a function to provide a primitive template renderer. It takes a dictionary for values to replace variables shaped {some-variable} in templates found by their name. For now, the templates are defined in the templates module instead of being read from a template directory. The values may be lists, in which case they are rendered with a delimiter, defaulting to ",".

Using an existing template engine like jinja2 is tempting but would introduce additional dependencies jw-pkg is trying hard to avoid.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-05-31 17:52:20 +02:00
.github/workflows build-package.yaml: Add workflow 2026-04-13 17:23:13 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf scripts/usr-bin: Install symlink /usr/bin/jw-pkg 2026-04-06 15:58:11 +02:00
make python-tools.sh: Fix __init__.py linter complaints 2026-05-31 17:51:51 +02:00
scripts python-tools.sh: Fix __init__.py linter complaints 2026-05-31 17:51:51 +02:00
src cmds.projects.lib.templates: Add module 2026-05-31 17:52:20 +02:00
.gitignore Everywhere: Rename package "jw-build" to "jw-pkg" 2025-11-28 13:35:56 +01:00
HASH Release 1.0.0-225@suse-tumbleweed/x86_64 2026-05-21 10:24:49 +00:00
Makefile make: Replace RPM -> PKG 2026-03-16 14:57:50 +01:00
RELEASES Release 1.0.0-225@suse-tumbleweed/x86_64 2026-05-21 10:24:49 +00:00
VERSION Start version: 1.0.0-225 2026-05-21 10:10:54 +00:00