Type:
Class
ERBHandler evaluates an ERB file and returns the result. This handler is automatically used if there are .rhtml files in a directory served by the FileHandler.
ERBHandler supports GET and POST methods.
The ERB file is evaluated with the local
variables servlet_request
and servlet_response
which are a WEBrick::HTTPRequest and WEBrick::HTTPResponse respectively.
Example .rhtml file:
Request to <%= servlet_request.request_uri %> Query params <%= servlet_request.query.inspect %>