[fixes] render extracted jinja title for custom doctypes
This commit is contained in:
parent
563db38e40
commit
5be75aaf27
1 changed files with 3 additions and 0 deletions
|
|
@ -168,6 +168,9 @@ def build_page(path):
|
|||
frappe.local.path = path
|
||||
|
||||
context = get_context(path)
|
||||
if "{{" in context.title:
|
||||
title_template = context.pop('title')
|
||||
context.title = frappe.render_template(title_template, context)
|
||||
|
||||
if context.source:
|
||||
html = frappe.render_template(context.source, context)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue