Add static merge method for advanced templating