Hi, I can’t figure out how to accomplish the following.
If I have a REST command like this:
rest_command:
food:
url: "http://example.com/food"
And it returns a simple list like this:
[
"Macaroni and Cheese",
"BBQ Baby Back Ribs",
"Chicken Cacciatore",
"Cheese Tortellini Pesto",
"BBQ Brisket Mac & Cheese"
]
How do I get the Markdown card’s content to display it? I’m looking for something like this (obviously this doesn’t work):
type: markdown
title: Food
content: >
{% for food in rest_command.food %}
- {{ food }}
{% endfor %}
Any ideas?