--no-help
don't add extra comments and method examples--add-route=...
add a route to this component to the Rails routes file--base-class=...
change the base class name from the defaulthyper:component
generator:MyComponent
in a file named my_component.rb
and place it in the app/hyperstack/components/
directory. The component may be name spaced and will be placed in the appropriate subdirectory. I.e. Foo::BarSki
will generate app/hyperstack/components/foo/bar_ski.rb
--no-help
flag--no-help
flag.Hyperstack::Router
module which provides a number of methods that will be used in the router component.hyper:router
generator:Note that in any Single Page App there will be two routers in play. On the server the router is responsible dispatching each incoming HTTP request to a controller. The controller will deliver back (usually using a view) the contents of the request.In addition on a Single Page App you will have a router running on the client, which will dispatch to different components depending on the current value of the URL. The server is only contacted if the current URL leaves the set of URLs that client router knows how to deal with.
routes.rb
File--add-route
option to add the route for you. For example:routes.rb
file, which will direct all URLS to the MainApp
component.HyperComponent
base class.Hyperstack.component_base_class
in the hyperstack.rb
initializer.ApplicationComponent
as their base class name.--base-class
option.