mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
8 lines
328 B
Ruby
8 lines
328 B
Ruby
# Safe-template-var: render an on-disk template via Rails-style
|
|
# `render :template, locals: {...}`. The template name is a constant
|
|
# symbol; the locals carry user input but flow into a file-loaded
|
|
# template, not into a source string.
|
|
|
|
def handler(params)
|
|
render template: "users/show", locals: { name: params[:name] }
|
|
end
|