Making prompts for llms with conditional context gets really messy. I've not seen a library that does this in a clean way and made a fairly elegant solution with template literals.
Show HN: A tagged template literal utility for clean LLM prompt generation | Better HN