We complete our templating system by writing recursive render functions, transforming our parsed template into HTML output. We then integrate the template library back into our demo application, ending with a real request going through our complete server-side web framework: routing a request to the correct handler, looking up database records based on the request, and rendering a template using data retrieved from the database.

Execute Program

Looking for something more interactive? Try Execute Program, an interactive learning platform from Destroy All Software LLC! It has courses on TypeScript, SQL, regular expressions, JavaScript concurrency, and more. All Destroy All Software subscriptions include full access to Execute Program, or you can subscribe to Execute Program directly.