builder
builder copied to clipboard
feat: Dynamic (Jinja) Markup / Templating
Frappe framework provides both a server side and client side Jinja-API (specially Html Templates In Javascript with a Jinja-like syntax on client-side). This would be really useful in Builder, both inside and outside the context of a repeater.
For a simple example, most website footers include a copyright statement including the current year. It would be great if we could render this dynamically in a single text block, such as:
© {{ now().year }} Your Company Name. All rights reserved.
Inside a repeater, this same principle could be used to apply on-the-fly formatting, prepends/appends, etc. This functionality should be available at least in the link and content attributes IMO.