Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 744 Bytes

File metadata and controls

32 lines (20 loc) · 744 Bytes

Template Plugin: Text Samples

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.

Running the Example

Execute the following steps:

  1. Go to the examples/templating/text directory.

  2. Have a look at proxies.xml.

  3. Open a commandline and execute membrane.sh or membrane.cmd

  4. Run this command from a second commandline:

    ❯ curl http://localhost:2000/text?name=Joe
    Hello Joe!
  5. Then execute:

    curl http://localhost:2000/text?name=Joe     

See: