This sample demonstrates, how to create text from a template.
Use the template plugin to create body content from a template. Placeholders in the template can be filled with values from variables.
Execute the following steps:
-
Go to the
examples/templating/textdirectory. -
Have a look at
proxies.xml. -
Open a commandline and execute
membrane.shormembrane.cmd -
Run this command from a second commandline:
❯ curl http://localhost:2000/text?name=Joe Hello Joe!
-
Then execute:
curl http://localhost:2000/text?name=Joe
See:
- template reference