Writing a custom template processor: Introduce the API for writing a user-defined template processor. Next, provide a few examples of custom template processors.