VRF route leaking with main table

Is it possible to route leak a VRF table and the main table?
I have a main table that has OSPF routes and I have a VRF. I want to leak everything from the main table towards the VRF, and from VRF i just need to leak directly connected routes.

I know I can do it over mangle, route policy rules, static routes, but I want to have everything done dynamically.
Hell I can do a loopback cable and establish BGP between the instances and filter out on import and export what i want.

But is there an elegant way? I’m coming from Juniper world and I’m used to instance-import, rib-group and logical tunnel features, is there something similar here?
Thanks!

you can use / ip firewall mangle or /ip route rule
this one simple e.g.

/ip route rule
add src-address=Lan-A dst-address=LAN-B action=lookup table-vrf
add src-address=LAN-B dst-address=LAN-A table=main routhing-mark=vrf