<p>Templates are used to generate all kinds of text, including computer code. The last decade, the use of templates gained a lot of popularity due to the increase of dynamic web applications. Templates are a tool for programmers, and implementations of template engines are most times based on practi
Code Generation with Templates
β Scribed by Jeroen Arnoldus, Mark van den Brand, A. Serebrenik, J.J. Brunekreef (auth.)
- Publisher
- Atlantis Press
- Year
- 2012
- Tongue
- English
- Leaves
- 208
- Series
- Atlantis Studies in Computing 1
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Templates are used to generate all kinds of text, including computer code. The last decade, the use of templates gained a lot of popularity due to the increase of dynamic web applications. Templates are a tool for programmers, and implementations of template engines are most times based on practical experience rather than based on a theoretical background.
This book reveals the mathematical background of templates and shows interesting findings for improving the practical use of templates.
First, a framework to determine the necessary computational power for the template metalanguage is presented. The template metalanguage does not need to be Turing-complete to be useful. A non-Turing-complete metalanguage enforces separation of concerns between the view and model.
Second, syntactical correctness of all languages of the templates and generated code is ensured. This includes the syntactical correctness of the template metalanguage and the output language. Third, case studies show that the achieved goals are applicable in practice. It is even shown that syntactical correctness helps to prevent cross-site scripting attacks in web applications.
The target audience of this book is twofold. The first group exists of researcher interested in the mathematical background of templates. The second group exists of users of templates. This includes designers of template engines on one side and programmers and web designers using templates on the other side
β¦ Table of Contents
Front Matter....Pages i-ix
Introduction....Pages 1-18
Preliminaries....Pages 19-34
The Unparser....Pages 35-49
The Metalanguage....Pages 51-92
Syntax-Safe Templates....Pages 93-110
Repleo: Syntax-Safe Template Evaluation....Pages 111-135
Case Studies....Pages 137-189
Conclusions....Pages 191-195
Back Matter....Pages 197-204
β¦ Subjects
Software Engineering;Programming Techniques;Computer Science, general
π SIMILAR VOLUMES
Learn how Roslyn's new code generation capability will let you write software that is more concise, runs faster, and is easier to maintain. You will learn from real-world business applications to create better software by letting the computer write its own code based on your business
<div>Learn howΒ Roslyn's new code generation capabilityΒ will let you write software that is more concise, runs faster, and is easier to maintain. You will learn from real-world business applicationsΒ to create better software by letting the computer write its own code based on your business logic alre
<Div> Like to build websites in the wild with your MacBook? This concise hands-on guide introduces you to the ideal editor: Coda 2. Rather than clutter your screen with shell access, a separate Css editor, and a version control app, you’ll discover how Coda’s "one-window web development"
<Div> Like to build websites in the wild with your MacBook? This concise hands-on guide introduces you to the ideal editor: Coda 2. Rather than clutter your screen with shell access, a separate Css editor, and a version control app, youβll discover how Codaβs "one-window web development" bundles eve
<span>Master ARM templates, Bicep, and other Azure Infrastructure-as-Code tools, techniques, and practices to build infrastructure on the Azure cloud.</span><span><br><br>In </span><span>Azure Infrastructure as Code</span><span> you will learn how to:<br> <br>Create reusable infrastructure templates