Test greeter

This commit is contained in:
Feodor Fitsner 2025-03-04 10:59:37 -08:00
parent 3c2b33668c
commit 5acc93870e
2 changed files with 3 additions and 0 deletions

View File

@ -5,3 +5,4 @@ class FoobarExtension(Extension):
def __init__(self, environment): def __init__(self, environment):
super(FoobarExtension, self).__init__(environment) super(FoobarExtension, self).__init__(environment)
environment.filters["foobar"] = lambda v: v * 2 environment.filters["foobar"] = lambda v: v * 2
environment.globals["greet"] = lambda name: f"Hello, {name}"

View File

@ -27,6 +27,8 @@ splash_screen: {{ splash_screen }}
splash_screen_text: {{ splash_screen_text }} splash_screen_text: {{ splash_screen_text }}
Uppercase Example: {{ 2 | foobar }} Uppercase Example: {{ 2 | foobar }}
Greeter: {{ greet("John") }}
*/ */
{% for dep in cookiecutter.flutter.dependencies %} {% for dep in cookiecutter.flutter.dependencies %}