Home Jinja Search/replace function
Reply: 0

Jinja Search/replace function

Namenone
1#
Namenone Published in 2017-12-07 13:02:41Z

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,
             bar.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.314068 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO