Test greeter
This commit is contained in:
parent
3c2b33668c
commit
5acc93870e
|
|
@ -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}"
|
||||||
|
|
|
||||||
|
|
@ -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 %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue