Home Jinja Search/replace function
Reply: 0

Jinja Search/replace function

user824 Published in March 24, 2018, 12:35 am

I'm using the Jinja template engine for some email build work.

I'm trying to do the following

If URL contains FOO, hide the CTA, else show the cta.

The URL is a variable which is pulled in from a data tag. I can't seem to find anything in the docs that would achieve this, can someone please help me out and guide me in the right direction, please?

The cta is something like the following

variable = { foo.com,

<a href="{variable}" target="_blank">Lorem ipsum</a>

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.331238 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO