garbagetown/playdocja — pull request #572 by wm3 (2014-03-12 16:34:31+00:00)
Title: manual/javaGuide/main/templates/JavaTemplates.md

- https://github.com/garbagetown/playdocja/blob/2.2.0/documentation/2.2.0/manual/javaGuide/main/templates/JavaTemplates.md
```
--- /Users/garbagetown/Desktop/2.1.5/manual/javaGuide/main/templates/JavaTemplates.md	2013-09-19 22:53:02.000000000 +0900
+++ /Users/garbagetown/Desktop/2.2.0/manual/javaGuide/main/templates/JavaTemplates.md	2013-09-19 10:11:22.000000000 +0900
@@ -2,7 +2,7 @@

## A type safe template engine based on Scala

-Play 2.0 comes with a new and really powerful Scala-based template engine, whose design was inspired by ASP.NET Razor. Specifically it is:
+Play comes with a powerful Scala-based template engine, whose design was inspired by ASP.NET Razor. Specifically it is:

- **compact, expressive, and fluid**: it minimizes the number of characters and keystrokes required in a file, and enables a fast, fluid coding workflow. Unlike most template syntaxes, you do not need to interrupt your coding to explicitly denote server blocks within your HTML. The parser is smart enough to infer this from your code. This enables a really compact and expressive syntax which is clean, fast and fun to type.
- **easy to learn**: it allows you to quickly become productive, with a minimum of concepts. You use simple Scala constructs and all your existing HTML skills.
@@ -190,12 +190,10 @@
@import _root_.company.product.core._
'''

-If you have common imports, which you need in all templates, you can declare in `project/Build.scala`
+If you have common imports, which you need in all templates, you can declare in `build.sbt`

-'''
-val main = PlayProject(…).settings(
- templatesImport += "com.abc.backend._"
-)
+'''scala
+templatesImport += "com.abc.backend._"
'''

## Comments

```