Hey there!
I’m not sure if I understand your idea. Let’s say we are talking about login page. You have code for default template and you can pick Lock, Lock(passwordless) or Custom Login Form (you have access to all these options code). I don’t understand what’s the core question here? Sorry if I understand your question the wrong way