Version 6.x.x Source

frappe.website.template.add_hero (out, context)

Add a hero element if specified in content or hooks. Hero elements get full page width.


frappe.website.template.add_index (out, context)

Add index, next button if {index}, {next} is present.


frappe.website.template.build_template (context)

Returns a dict of block name and its rendered content


frappe.website.template.render_blocks (template_path, out, context)

Build the template block by block from the main template.


frappe.website.template.separate_style_and_script (out, context)

Extract style and script tags into separate blocks


frappe.website.template.set_breadcrumbs (out, context)

Build breadcrumbs template (deprecated)


frappe.website.template.set_sidebar (out, context)

Include sidebar (deprecated)


frappe.website.template.set_title_and_header (out, context)

Extract and set title and header from content or context.