This case study presents the application of dbt (data build tool) in building e-commerce data models, focusing on the integration of Jinja, a Pythonic templating language. The document outlines the use of three primary languages within dbt: SQL for data transformations, YAML for documentation and testing, and Jinja for templating. It explains how Jinja facilitates dynamic SQL generation, enhances collaboration, and promotes code reusability through various constructs such as loops and macros. The case study details specific examples of Jinja statements, including the creation of variables, looping through items, and defining reusable macro functions. Additionally, it discusses the compilation process of dbt models and the management of whitespace in Jinja code. The document serves as a practical guide for data scientists and analysts looking to leverage dbt and Jinja for efficient data modeling in e-commerce contexts.