Skip to main content

Case Studies

  • Chapter
  • First Online:
Code Generation with Templates

Part of the book series: Atlantis Studies in Computing ((ATLANTISCOMP,volume 1))

  • 619 Accesses

Abstract

Three case studies are presented in this chapter to show the use of the unparser-complete metalanguage and the usability of the syntax-safe template evaluator in a practical setting. The syntax-safe template evaluator Repleo is used for implementing these case studies. Two case studies show a reimplementation of an existing code generator. The reimplemented code generators use a separated model transformation stage, resulting in less code and better maintainable code than the original implementations. The use of separated model transformation stage is also enforced by the unparser-complete metalanguage of Repleo. The maintainability is achieved by less code clones in the code generator specification and less entanglement of metacode and object code. The third case study shows the benefits of syntax-safe templates in the context of dynamic web page generation. Syntax-safe templates provide a solution against cross-site scripting attacks.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jeroen Arnoldus .

Rights and permissions

Reprints and permissions

Copyright information

© 2012 ATLANTIS PRESS

About this chapter

Cite this chapter

Arnoldus, J., van den Brand, M., Serebrenik, A., Brunekreef, J. (2012). Case Studies. In: Code Generation with Templates. Atlantis Studies in Computing, vol 1. Atlantis Press, Paris. https://doi.org/10.2991/978-94-91216-56-5_7

Download citation

Publish with us

Policies and ethics

Societies and partnerships