I want to cast an int that\'s passed to the template through the url, but it says that the str function isn\'t defined.
str
How do I get around this?
You may use join:
join
{% set p = (year, month, day, post.slug)|join("/") %}