Added chainability to template handler interface and implementations.