Skip to content

Instantly share code, notes, and snippets.

@sake92
Created August 23, 2017 08:23
Show Gist options
  • Save sake92/77a7a1468c12160064948f246c658154 to your computer and use it in GitHub Desktop.
Save sake92/77a7a1468c12160064948f246c658154 to your computer and use it in GitHub Desktop.
Demo for my medium.com blog post
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