I am concerned because I hard-coded the forward slashes into the path as shown between the sin" /> I am concerned because I hard-coded the forward slashes into the path as shown between the sin" /> I am concerned because I hard-coded the forward slashes into the path as shown between the sin"/>

Will this jinja template code snippet work properly on both a windows and linux server?

22 Views Asked by At
<img src="{{ './static/images/' ~ fruit.image_name }}">

I am concerned because I hard-coded the forward slashes into the path as shown between the single quotes above. If this is a legitimate concern, is there a jinja function similar to python's os.path.join() function that can be used?

0

There are 0 best solutions below