mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
264 B
264 B
Views
You can use ERB-like built-in ECR views to render files.
get '/:name' do
render "views/hello.ecr"
end
And you should have an hello.ecr
view. It will have the same context as the method.
Hello <%= env.params["name"] %>