Conditional logic inside a django template {% with tag -
i trying within django template.
{% url="http://"|add:siteprefix|add:".com/post/?fromquoteemail=1&utm_source=c1&utm_medium=email{% if emaileventid %}&emaileventid={{ emaileventid }}{% endif %}{% if loginkeyobj %}&loginkey={{ loginkeyobj.keyword }}{% endif %}" %}
i not sure how conditional:
{% if emaileventid %}&emaileventid={{ emaileventid }}{% endif %}{% if loginkeyobj %}&loginkey={{ loginkeyobj.keyword }}{% endif %}
to play nice {%with tag
thanks help!
django django-templates
No comments:
Post a Comment