Modules Coding (including handlers)
The example module is an excellent place to look at how to start coding a module, the GitHub repository is an excellent place to look at how it all fits together (especially the README.md
file).
Example module
Link
https://github.com/synapticloop/routemaster-module-example
Description
As the name would suggest, this is an example module which binds a RESTful route to /module/example/
and serves a very simple page that outputs something along the following: (when you browse to http://localhost:5474/module/example/).
Hello from the example module, this page was brought to you by the letter 'J'
Templar handler module
Link
https://github.com/synapticloop/routemaster-module-templar-handler
Description
This adds the templar rendering language to routemaster and is bound to any file that end with .templar
.