Last active
April 4, 2016 14:06
-
-
Save adamluzsi/5c41c7bafb3ce494f06742a6845ca71d to your computer and use it in GitHub Desktop.
How to Create rack-app extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rack::App::Extension.register 'rack_app_extension' do | |
include ExampleExtensionEndpointMethods | |
extend ExampleExtensionClassMethods | |
def endpoint_method | |
'hello world' | |
end | |
apply_extension :front_end | |
helpers do | |
def some_template_method | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment