Call a custom doctype method in jinja2

Is there a way to call a custom doctype method in jinja2

Not possible. We have to control what methods gets called on server side otherwise it would be a security flaw.