Page API
Response
class SomePage < Matestack::Ui::Page
def response
div id: "div-on-page" do
SomeComponent.()
end
end
end class SomeComponent < Matestack::Ui::Component
def response
div id: "my-component" do
plain "hello world!"
end
end
endPartials and helper methods
Local partials on page level
Partials defined in modules
Helper methods
Prepare
Params access
Passing data to pages
Last updated
Was this helpful?