Townies are good bikes for rear hub motors. good rear dropout plates on those that make bolting on torque arms easy.
But the question is how you will use the bike, hub motor might not be your best choice. But a rear hub motor can be the most affordable, easiest conversion choice.
Front hub motor only a good choice for a townie with no suspension fork.