Test global macros

This commit is contained in:
Feodor Fitsner 2025-02-26 16:46:00 -08:00
parent 5edecf8b02
commit a04cf70655
3 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,6 @@
{% for key, value in cookiecutter.items() -%}
{{ key }}: {{ value }}
{% endfor %}
{% endfor %}
{% import "_macros.jinja2" as macros %}
GREETING = "{{ macros.greeting('World') }}"

View File

@ -0,0 +1,8 @@
{# _macros.jinja2 #}
{% macro upper_case(value) %}
{{ value.upper() }}
{% endmacro %}
{% macro greeting(name) %}
Hello, {{ name }}!
{% endmacro %}

View File

@ -56,7 +56,11 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
println("minSdkVersion: $flutter.minSdkVersion")
println("Gradle build config:")
println(" minSdkVersion: $flutter.minSdkVersion")
println(" targetSdkVersion: $flutter.targetSdkVersion")
println(" versionCode: $flutter.versionCode")
println(" versionName: $flutter.versionName")
// flet: split_per_abi {% if not cookiecutter.split_per_abi %}
ndk {