ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > Configuring a Template for the Lua Script Resource
  
Configuring a Template for the Lua Script Resource
The template file is a text file that is separated into groups. Each group is used to define the overall behavior, properties, services, and tasks for edge things that reference the template file. Template files must be placed in the \microserver\etc\custom\templates folder.
To view an example of a template file:
1. Open a command window or terminal session on the system or device that is hosting the Lua Script Resource.
2. Change into the directory, \microserver\etc\custom\templates.
3. Open the file, config.lua.example. Use this example as a reference while reading about the various groups of the template file.