is there a way to use %def references somehow, basic idea being:
% if condition_a:
% func = %def_a
% elif condition_b:
% func = %def_b
... etc ...
${func( params )}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes like this:
@timmy: I have no idea what you mean, maybe this?
You can put any Python code inside
<% .. %>, see the mako docs!