Skip to content

How do I properly print out a context string within an img src attribute? #718

Closed Answered by bogdano
bogdano asked this question in Q&A
Discussion options

You must be logged in to vote

<img src={ string(templ.URL(fmt.Sprintf("/api/files/%s/%s/%s", collection_id, park.ParkRecordId, park.Images[0])))} alt="" class="w-20 h-20" />

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bogdano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant