I am new to OctoberCMS so I don't know a lot of things. I read the October documentation and i know how to pass variables when using partials in the static way:
{% partial "location" city="Vancouver" country="Canada" %}
My problem is that I need to use php or js variables. Let's say I have an input field where the user writes an ID, then after a button is pressed I want to pass the ID to a partial. I am trying to do something like this :
{% partial "location" city=$city country=$country %}
Can someone help me? Thank you.