customizing scaffold templates

Hi, thanks for attention,

I made some modifications in the scaffold generator templates. But all
the applications will use this new templates. How can i change these
templates only for a desired application? like a plugin!

Can you please share your scaffold generator template modifications with
me? im tryng to do that but getting lots of error