Cleanup
This commit is contained in:
parent
1c75b0542d
commit
3bf678a181
|
|
@ -10,7 +10,6 @@
|
||||||
"copyright": "Copyright (c) 2023 Your Company",
|
"copyright": "Copyright (c) 2023 Your Company",
|
||||||
"flutter": null,
|
"flutter": null,
|
||||||
"sep": "/",
|
"sep": "/",
|
||||||
"hide_loading_animation": false,
|
|
||||||
"bundle_id": "{{ cookiecutter.bundle_id if 'bundle_id' in cookiecutter else cookiecutter.org_name + '.' + cookiecutter.project_name_slug }}",
|
"bundle_id": "{{ cookiecutter.bundle_id if 'bundle_id' in cookiecutter else cookiecutter.org_name + '.' + cookiecutter.project_name_slug }}",
|
||||||
"org_name_2": "{{ cookiecutter.bundle_id.rsplit('.', 1)[0] if 'bundle_id' in cookiecutter else cookiecutter.org_name if 'org_name' in cookiecutter else 'com.flet' }}",
|
"org_name_2": "{{ cookiecutter.bundle_id.rsplit('.', 1)[0] if 'bundle_id' in cookiecutter else cookiecutter.org_name if 'org_name' in cookiecutter else 'com.flet' }}",
|
||||||
"ios_provisioning_profile": "",
|
"ios_provisioning_profile": "",
|
||||||
|
|
@ -29,5 +28,5 @@
|
||||||
"split_per_abi": false,
|
"split_per_abi": false,
|
||||||
"options": null,
|
"options": null,
|
||||||
"pyproject": null,
|
"pyproject": null,
|
||||||
"_extensions": ["cookiecutter_extensions.FoobarExtension"]
|
"_extensions": ["cookiecutter_extensions.FletExtension"]
|
||||||
}
|
}
|
||||||
|
|
@ -2,10 +2,9 @@ from jinja2 import pass_context
|
||||||
from jinja2.ext import Extension
|
from jinja2.ext import Extension
|
||||||
|
|
||||||
|
|
||||||
class FoobarExtension(Extension):
|
class FletExtension(Extension):
|
||||||
def __init__(self, environment):
|
def __init__(self, environment):
|
||||||
super(FoobarExtension, self).__init__(environment)
|
super(FletExtension, self).__init__(environment)
|
||||||
environment.filters["foobar"] = lambda v: v * 2
|
|
||||||
environment.globals["get_pyproject"] = self.get_pyproject
|
environment.globals["get_pyproject"] = self.get_pyproject
|
||||||
|
|
||||||
@pass_context
|
@pass_context
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue