I'm need to use multiple return values from a function in HTML
Thats short version of the code. All imports are correct and if I return single value it works. Just don't know how to call both values in the HTML.
In the view:
def get_title_and_text():
title = 'Some title'
text = 'Some text'
return title, text
def page():
return render(request, 'page.html', {'get_title_and_text': get_title_and_text()}
In the HTML
<h3>{{ get_title_and_text.title }}</h3>
<h3>{{ get_title_and_text.text }}</h3>
I guess it's simple solution but I just could not find information about that matter