https://www.boundaryml.com logo
Hi there. Are jinja templates necessary
# general
g
Hi there. Are jinja templates necessary for the BAML prompt blocks? Or could we eventually use the new Python T-strings?
b
Copy code
py
from textwrap import dedent
dedent(f"""
  F strings was all we ever needed!
  Besides DSLs are much better than a single bloated language trying to solve everything top-down style.
  God pless Zen of Python
""").strip()
pless 😭
v
there are quite a few things i dilike about jinja! it was more of a matter of practicallity. That said, i personally do like that in BAML we dedent strings for you automatically. I think i'm in general a supporter of getting rid of the
|
syntax in jinja