diff --git a/projects/makotemplates.org/package.yml b/projects/makotemplates.org/package.yml new file mode 100644 index 00000000..1d22ad56 --- /dev/null +++ b/projects/makotemplates.org/package.yml @@ -0,0 +1,20 @@ +distributable: + url: https://github.com/sqlalchemy/mako/archive/rel_{{version.major}}_{{version.minor}}_{{version.patch}}.tar.gz + strip-components: 1 +versions: + github: sqlalchemy/mako/releases + strip: + - /rel_/ +dependencies: + python.org: ^3.11 +runtime: + env: + PYTHONPATH: "{{prefix}}/venv/lib/python3.11/site-packages:$PYTHONPATH" +build: + script: + - python-venv.sh {{prefix}}/bin/mako-render +provides: + - bin/mako-render +test: + script: + - python test.py diff --git a/projects/makotemplates.org/test.mako b/projects/makotemplates.org/test.mako new file mode 100644 index 00000000..dec39f9e --- /dev/null +++ b/projects/makotemplates.org/test.mako @@ -0,0 +1,5 @@ + + +

Hello! My name is ${name}

+ + diff --git a/projects/makotemplates.org/test.py b/projects/makotemplates.org/test.py new file mode 100644 index 00000000..c75b84a6 --- /dev/null +++ b/projects/makotemplates.org/test.py @@ -0,0 +1,7 @@ +from mako.template import Template + +template = Template(filename='test.mako') + +rendered_template = template.render(name='tea.xyz') + +print(rendered_template)