What if modules behaved as Pluto notebooks? (what you see is what you get). That could be even the place for a macro.