Intro-to-Jinja-tpl-v2/inner_functions.py

12 lines
210 B
Python

def parent(num):
def first_child():
return "Hi, I'm Elias"
def second_child():
return "Call me Ester"
if num == 1:
return first_child
else:
return second_child