Add ability to choose template engines - fixes #2