gencode: split jinja into new py
Add pattern Handle/Body Idiom