Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Create a <content-container> which takes a conditional tag #219

Open
SimonBiggs opened this issue Apr 4, 2018 · 3 comments
Open

Create a <content-container> which takes a conditional tag #219

SimonBiggs opened this issue Apr 4, 2018 · 3 comments
Labels
Milestone

Comments

@SimonBiggs
Copy link
Owner

SimonBiggs commented Apr 4, 2018

Create a <content-container> which can have a conditional tag which causes the contents of that element to only be displayed if the conditional is met.

@SimonBiggs SimonBiggs added the next label Apr 4, 2018
@SimonBiggs
Copy link
Owner Author

I imagine other features might be to pass variables through to display contents or something of that sort, or even have the contents occur multiple times based off of a for loop through the variables passed to the element.

@SimonBiggs SimonBiggs changed the title Create an <element-display> which takes a conditional tag Create a <content-container> which takes a conditional tag Apr 4, 2018
@SimonBiggs
Copy link
Owner Author

Variable passing might work by having a parameter variables which takes a dictionary. The keys of the dictionary can then be used within curly brackets like so:

{{dictionary_key}}

A for loop could work similarly, except pass a list of dictionaries. The contents of the container is repeated for every dictionary in the list. Variables update to be the content of the new dict. ...

@SimonBiggs
Copy link
Owner Author

@robmarkcole what did you think about this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant