Skip to content

Mustaching Mustached html variables from python #6030

Discussion options

You must be logged in to vote

Try:

''.join([f'<p>Adding 5 is {e["add"]}, while multiplying is {e["multi"]}.</p>' for e in data["params"]["some_set"]])

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jonatanschroeder
Comment options

@echuber2
Comment options

Comment options

You must be logged in to vote
1 reply
@JamesGiaquinto
Comment options

Answer selected by jonatanschroeder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants