Springer celebrates 175 years of publishing excellence! Join us >>

Atlantis Studies in Computing

Code Generation with Templates

Authors: Arnoldus, J., van den Brand, M., Serebrenik, A., Brunekreef, J.J.

  • There is no fundamental literature on the topic of (web) templates The book shows the fundamental properties and languages of templates Two case-studies show improvement of separation of concerns and re-use by using a two-stage architecture based on templates instead of a single stage implementation Syntax-safe templates prevent cross-site scripting by means of compact grammar definitions

Buy this book

eBook $139.00
price for USA (gross)
  • ISBN 978-94-91216-56-5
  • Digitally watermarked, DRM-free
  • Included format: PDF
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Hardcover $179.00
price for USA
  • ISBN 978-94-91216-55-8
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
Softcover $179.00
price for USA
  • ISBN 978-94-6239-052-2
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
Rent the ebook  
  • Rental duration: 1 or 6 month
  • low-cost access
  • online reader with highlighting and note-making option
  • can be used across all devices
About this book

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 (8 chapters)

Buy this book

eBook $139.00
price for USA (gross)
  • ISBN 978-94-91216-56-5
  • Digitally watermarked, DRM-free
  • Included format: PDF
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Hardcover $179.00
price for USA
  • ISBN 978-94-91216-55-8
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
Softcover $179.00
price for USA
  • ISBN 978-94-6239-052-2
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
Rent the ebook  
  • Rental duration: 1 or 6 month
  • low-cost access
  • online reader with highlighting and note-making option
  • can be used across all devices
Loading...

Recommended for you

Loading...

Bibliographic Information

Bibliographic Information
Book Title
Code Generation with Templates
Authors
Series Title
Atlantis Studies in Computing
Series Volume
1
Copyright
2012
Publisher
Atlantis Press
Copyright Holder
ATLANTIS PRESS
eBook ISBN
978-94-91216-56-5
DOI
10.2991/978-94-91216-56-5
Hardcover ISBN
978-94-91216-55-8
Softcover ISBN
978-94-6239-052-2
Series ISSN
2212-8557
Edition Number
1
Number of Pages
IX, 204
Number of Illustrations and Tables
98 b/w illustrations, 2 illustrations in colour
Topics