Is there a way to do this without templates?

Can you show sample code without templates?

Thanks