Created
August 23, 2017 08:23
-
-
Save sake92/77a7a1468c12160064948f246c658154 to your computer and use it in GitHub Desktop.
Demo for my medium.com blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object HelloWorld extends JavaTemplate { | |
override def pageTitle = "Hello world!" | |
val introSectionContent = | |
div( | |
p("Java "Hello World!" example:"), | |
javaSnippet(""" | |
class HelloWorldApp { | |
public static void main(String[] args) { | |
System.out.println("Hello!"); | |
} | |
} | |
""") | |
) | |
val introSection = Section("Hello world!", introSectionContent) | |
override def sections = Seq(introSection) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment