Closed steele-ntwrk closed 4 months ago
Welcome to this project and thank you!' first issue
I fixed it myself by remove the quotations around site_name
{% for vlan in get_vlans_for_site(site_name) %}
That's good. Indeed, the syntax is very much like Python (site_name
is a variable).
If I were you, I would not publish api tokens on github?
I convert this issue into a discussion.
Hi All,
I am trying to use the page metadata to pass in a variable to a macro's module I have written. I have provided the module and the page data below.
In short the metadata renders using simple Jinja, the module works if I pass in the site name as the variable i.e "TEST" however the module doesnt work if I use
{% for vlan in get_vlans_for_site('site_name') %}
or
{% for vlan in get_vlans_for_site('{{site_name}}') %}
Module
Page