Skip to content

Commit 706dd88

Browse files
committed
Some cosmetic adjustments
1 parent 0bc4ebc commit 706dd88

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

app/controllers/Blog.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ class Blog @Inject()(
2626
with Common
2727
with I18nSupport {
2828

29+
val blogName = "Play Framework Blog"
2930
def index() = Action { implicit request =>
30-
Ok(html.blog.index("Play Framework Blog"))
31+
Ok(html.blog.index(blogName))
3132
}
3233

3334
def graal() = Action { implicit request =>
34-
Ok(html.blog.graal("Running Play on GraalVM"))
35+
Ok(html.blog.graal(blogName, "Running Play on GraalVM"))
3536
}
3637

3738
def socketio() = Action { implicit request =>
38-
Ok(html.blog.socketio("Play socket.io support"))
39+
Ok(html.blog.socketio(blogName, "Play socket.io support"))
3940
}
4041

4142
}

app/views/blog/graal.scala.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@import controllers.documentation.ReverseRouter
2-
@(title: String)(implicit req: RequestHeader, reverseRouter: ReverseRouter)
3-
@main(title, "blog"){
2+
@(blogName:String, title: String)(implicit req: RequestHeader, reverseRouter: ReverseRouter)
3+
@main(title, blogName){
44
<header id="top">
55
<div class="wrapper">
66
<h1>
7-
@title
7+
@blogName
88
</h1>
99
</div>
1010
</header>
1111
<section id="content">
1212
<article>
13-
<section>
14-
<h1></h1>
13+
<br/>
14+
<h1>@title</h1>
1515

1616
<p>On the 17th of April, Oracle Labs presented the community the first release cadence for their new universal virtual machine called <a href="https://www.graalvm.org/">GraalVM</a>. Graal is a Polyglot VM that can run multiple languages and can interop between them without any overhead. In this blog post I will go into details what this means for Scala and especially for Play Framework and what runtime characteristics the new VM has, when running Play on top of it.</p>
1717
<p>Graal currently comes in <a href="https://www.graalvm.org/downloads/">two flavors</a>, one is the Community Edition which is open source and comes with the same license as a regular OpenJDK VM. Sadly at the moment the Community Edition is only available for Linux, which is good for production but mostly not enough for everyday development if you are not running Linux on your development machine.</p>
@@ -109,7 +109,6 @@ <h2 id="conclusion">Conclusion</h2>
109109
<p>If you are trying to interop with other languages Graal might also be a really good fit, since most languages can just be executed/run from a simple “Context” and Graal will also try his best to make the code as performant as possible.</p>
110110

111111

112-
</section>
113112
</article>
114113
</section>
115114
}

app/views/blog/index.scala.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ <h1>
99
</div>
1010
</header>
1111
<section id="content">
12+
<br/>
1213
<article>
13-
<ol>
14+
<ul>
1415
<li><a href="@routes.Blog.graal()">Running Play on GraalVM</a></li>
1516
<li><a href="@routes.Blog.socketio()">Play socket.io support</a></li>
16-
</ol>
17+
</ul>
1718
</article>
1819
</section>
1920
}

app/views/blog/socketio.scala.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@import controllers.documentation.ReverseRouter
2-
@(title: String)(implicit req: RequestHeader, reverseRouter: ReverseRouter)
3-
@main(title, "blog"){
2+
@(blogName:String,title: String)(implicit req: RequestHeader, reverseRouter: ReverseRouter)
3+
@main( title, blogName){
44
<header id="top">
55
<div class="wrapper">
66
<h1>
7-
@title
7+
@blogName
88
</h1>
99
</div>
1010
</header>
1111
<section id="content">
1212
<article>
13-
<section>
14-
<h1></h1>
13+
<br/>
14+
<h1>@title</h1>
1515

1616
<p>The Play team are proud to announce official support for <a href="https://socket.io/">socket.io</a>. We have created a library called <a href="https://github.com/playframework/play-socket.io">play-socket.io</a> which provides a complete engine.io and socket.io implementation, tested against the socket.io reference implementation client (that is, the official <a href="https://github.com/socketio/socket.io-client">JavaScript socket.io client</a>), and including a number of useful features such as backpressure and cluster support that the JavaScript implementations do not have.</p>
1717
<p>Play has already proved itself to be apt at scaling to hundreds of thousands of connections per node, for example as <a href="https://engineering.linkedin.com/blog/2016/10/instant-messaging-at-linkedin--scaling-to-hundreds-of-thousands-">demonstrated by LinkedIn</a>, so having the straight forward multiplexing and event based API offered by the socket.io JavaScript client in combination with Play&#39;s powerful backend makes for a compelling technology stack for reactive applications.</p>
@@ -59,7 +59,6 @@ <h2 id="documentation-and-samples">Documentation and samples</h2>
5959
<p>For installation instructions, comprehensive documentation and links to sample apps, see the documentation for <a href="https://github.com/playframework/play-socket.io/blob/master/docs/ScalaSocketIO.md">Scala</a> and <a href="https://github.com/playframework/play-socket.io/blob/master/docs/JavaSocketIO.md">Java</a>. To contribute, visit the projects <a href="https://github.com/playframework/play-socket.io">GitHub page</a>.</p>
6060

6161

62-
</section>
6362
</article>
6463
</section>
6564
}

0 commit comments

Comments
 (0)