Update Hama Pipes examples to use templates