builder icon indicating copy to clipboard operation
builder copied to clipboard

feat: Dynamic (Jinja) Markup / Templating

Open batonac opened this issue 11 months ago • 0 comments

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.

batonac avatar Mar 11 '24 15:03 batonac