Hello Everyone,
I want to get url parameter value in my html page via jinja.
Please guide me in this regard.
Thanks
Hello Everyone,
I want to get url parameter value in my html page via jinja.
Please guide me in this regard.
Thanks
@sheerazkaleem you can’t, but you can get it from python script and send it to jinja using the context.
python : context.value=frappe.form_dict["value"]
jinja : {{value}}
It’s a html page.
How can we do python script on it?
i just created the html file in www folder and accessing this page on website.
and using some jinja to get the session user displaying some user related data via frappe.db.sql
in the same folder add a py file with the same name as the html file . and write this :
import frappe
def get_context(context):
context.test="test"
in your html file try to access the variable using jinja with {{test}}
Its working bro
Many thanks