Is it possible to use Metadata in module? #224
-
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
or
Module
Page
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Welcome to this project and thank you!' first issue |
Beta Was this translation helpful? Give feedback.
-
I fixed it myself by remove the quotations around site_name
|
Beta Was this translation helpful? Give feedback.
-
That's good. Indeed, the syntax is very much like Python ( If I were you, I would not publish api tokens on github? I convert this issue into a discussion. |
Beta Was this translation helpful? Give feedback.
I fixed it myself by remove the quotations around site_name
{% for vlan in get_vlans_for_site(site_name) %}