Chapter 54. Embedment Helper

An object that minimizes code in a templating system by providing all needed functions to that templating mechanism.

image

Many systems allow you to extend the capability of a simple representation by embedding general-purpose code into that representation to do things that otherwise would not be possible. Examples include embedding code into web page templates, putting code actions into grammar files, and putting callouts into code generation templates. This mechanism of general-purpose Foreign Code adds a lot of power to the representation it’s embedded into, without complicating the basic representation itself. However, ...

Get Domain Specific Languages 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.