8TEMPLATE INJECTION

Image

A template engine is code that creates dynamic websites, emails, and other media by automatically filling in placeholders in the template when rendering it. By using placeholders, the template engine allows developers to separate application and business logic. For example, a website might use just one template for user profile pages with dynamic placeholders for profile fields, such as the user’s name, email address, and age. Template engines also usually provide additional benefits, such as user input sanitization features, simplified HTML generation, and easy maintenance. But these features don’t make template engines immune ...

Get Real-World Bug Hunting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.