import frappe from frappe.website.render import render def get_context(context): # Get the color query parameter from the request color = frappe.form_dict.get('color') context.color = color