https://github.com/filp/slash-blade
A simple routing library for the slash language.
https://github.com/filp/slash-blade
Last synced: 7 days ago
JSON representation
A simple routing library for the slash language.
- Host: GitHub
- URL: https://github.com/filp/slash-blade
- Owner: filp
- Created: 2013-04-16T11:50:06.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-17T07:46:16.000Z (over 12 years ago)
- Last Synced: 2025-02-06T07:45:39.042Z (11 months ago)
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Blade
A very simple router implementation for the slash language.
### Usage:
First step:
```ruby
<%
use Blade::Router;
class MyApp {
def do_the_dew(name = "world") {
print("hello #{name}");
}
}
Blade::Router.new(λ r {
r.get("/hello/:name").where("name", %r{\w+});
}).exec(Request);
```
Second step: *???*