Does Ramaze have a Sinatra like "before/after" hooks?

166 Views Asked by At

Wondering if Ramaze has hooks like Sinatra. Does anyone know? Thanks!

1

There are 1 best solutions below

0
fmendez On BEST ANSWER

Their documentation tells you that it does. For instance:

before(:index, :other) do
    puts 'Executed before specific actions only.'
end

after(:index, :other) do
    puts 'Executed after specific actions only.'
end