I am using Sinatra and slim. In one slim template I would like to stop render if a variable is true. Code like this:
- if @lock
p.alert this page is locked.
- stop_render
I tried to use return and that just generated a empty page. Apparently a plain return does not keep the html markup slim just rendered. so is there a way to stop render a template halfway and keep the rendered content?