[fix] Compile the client AFTER all processing is done.
[minor] Register the templates in the `pipe` global