[fixes] render extracted jinja title for custom doctypes

This commit is contained in:
mbauskar 2017-09-15 11:38:50 +05:30
parent 563db38e40
commit 5be75aaf27

View file

@ -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)