mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
10 lines
276 B
Ruby
10 lines
276 B
Ruby
# Safe: ERB.new receives a constant template source. Local variables
|
|
# bound through `binding` may carry user input but do not activate SSTI.
|
|
|
|
require "erb"
|
|
|
|
def handler(params)
|
|
name = params[:name]
|
|
template = ERB.new("Hello, <%= name %>")
|
|
template.result(binding)
|
|
end
|