Skip to content

Commit

Permalink
add a new filter in the local extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed May 31, 2023
1 parent 2e0d4d0 commit c9649fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dir/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"project": "test",
"_extensions": ["local_extensions.add_1"]
"_extensions": ["local_extensions.add_1", "local_extensions.new_filter"]
}
5 changes: 5 additions & 0 deletions dir/local_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
@simple_filter
def add_1(s: str):
return s + "1"

@simple_filter
def new_filter(s: str):
# a new filter to test the extension update
return s + " updated"
2 changes: 2 additions & 0 deletions dir/{{ cookiecutter.project }}/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Test file

{{ "Updated" | add_1 | add_1 }}

{{ "This has been " | new_filter }}

0 comments on commit c9649fd

Please sign in to comment.