Hunt framework v0.7.0 released
Brian via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 12 03:29:13 PDT 2017
Hunt is a high-level dlang Web framework that encourages rapid
development and clean, pragmatic design. It lets you build
high-performance Web applications quickly and easily.
1. add new routing module
2. add cache module
3. support route group
4. support access static file
5. add new http error page
6. add memcache storage
7. add redis storage
8. update collie version to 0.9.x
9. improve example project
0. use new application config items
Create an web project use hunt-skeleton:
git clone https://github.com/putaolabs/hunt-skeleton.git myproject
cd myproject
dub run -v
Request:
http://localhost:8080
Custom action text in this file source/app/controller/index.d :
```D
module app.controller.index;
import hunt;
class IndexController : Controller
{
mixin MakeController;
@Action
void index()
{
response.html("Hello world");
}
}
```
Config http port in config/application.conf :
```bash
http.address = 127.0.0.1
http.port = 8080
```
Custom routes in file config/routes :
```bash
GET / index.index
GET /test index.test
```
project source code repo:
https://github.com/huntlabs/hunt
More information about the Digitalmars-d
mailing list