forked from twitter/finatra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.markdown.template
45 lines (31 loc) · 1.25 KB
/
README.markdown.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Finatra [![Build Status](https://secure.travis-ci.org/twitter/finatra.png?branch=master)](http://travis-ci.org/twitter/finatra)
[Finatra](http://finatra.info) is a sinatra-inspired web framework for scala, running on top of [Finagle](http://twitter.github.com/finagle/)
See the [Getting Started](http://finatra.info/docs/tutorial.html) guide or the [Documentation](http://finatra.info/docs/index.html) for more information.
Get help on the [finatra-users](https://groups.google.com/forum/#!forum/finatra-users) mailing list.
```scala
class HelloWorld extends Controller {
get("/hello/:name") { request =>
val name = request.routeParams("name").getOrElse("default user")
render.plain("hello " + name).toFuture
}
}
object App extends FinatraServer {
register(new HelloWorld())
}
```
### SBT (dual published for 2.9.x or 2.10.x)
```scala
"com.twitter" %% "finatra" % "###VERSION###"
```
### Maven
```xml
<dependency>
<groupId>com.twitter</groupId>
<artifactId>finatra_2.10</artifactId>
<!-- for 2.9 <artifactId>finatra_2.9.2</artifactId> -->
<version>###VERSION###</version>
</dependency>
```
## License
Copyright 2014 Twitter, Inc and other contributors
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0