Skip to content

Commit

Permalink
style: cosmetic adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
podhmo committed Jun 12, 2019
1 parent 9061d39 commit b2afdf8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions examples/extensions/dst/02with-cookiecutter/Hello/hello.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# use the feature of builtin additional modules
original = "defaultProject"
print("camelcase: defaultProject")
print("snakecase: default_project")
print("kebabcase: default-project")

# python's grammar

# use the feature of individial additional modules
"""
# for testing
jinja is 神社
kamidana is 神棚
"""
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

@as_global
def about_kamidana():
return importlib_resources.read_text("kamidana", "data.txt")
return importlib_resources.read_text("kamidana", "data.txt").rstrip()
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# use the feature of builtin additional modules
original = "{{cookiecutter.project_name}}"
print("camelcase: {{cookiecutter.project_name|camelcase}}")
print("snakecase: {{cookiecutter.project_name|snakecase}}")
print("kebabcase: {{cookiecutter.project_name|kebabcase}}")

# python's grammar

# use the feature of individial additional modules
"""
{{about_kamidana()}}
"""

0 comments on commit b2afdf8

Please sign in to comment.