return own custom error from template while it executed

67 views
Skip to first unread message

Vasiliy Tolstov

unread,
Jan 14, 2021, 5:32:52 AM1/14/21
to golan...@googlegroups.com
Hi. I can't find in google how to solve my problem. Inside
text/template i want to check some passed data and return some
descriptive text if conditions not matching.
I don't have ability to check it before template executed. Does it possible?

--
Vasiliy Tolstov,
e-mail: v.to...@selfip.ru

Shulhan

unread,
Jan 15, 2021, 3:23:08 AM1/15/21
to Vasiliy Tolstov, golan...@googlegroups.com

14 Jan 2021 17:32:37 Vasiliy Tolstov <v.to...@selfip.ru>:

> Hi. I can't find in google how to solve my problem. Inside
> text/template i want to check some passed data and return some
> descriptive text if conditions not matching.
> I don't have ability to check it before template executed. Does it
possible?
>

I am not sure your exact problem. So, you have a function that accept
data and you want to check the data before passing it to template
execution? Why you can not check it before template executed?
Reply all
Reply to author
Forward
0 new messages