Skip to content

Commit

Permalink
[playframework#56] Docs: document @include. in application.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hilton (Lunatech) authored and guillaumebort committed Apr 13, 2011
1 parent d335894 commit e8865f1
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions documentation/manual/main.textile
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,22 @@ There are two required configuration files:
* **application.conf**, the main configuration file for the application. It contains standard configuration options.
* **routes**, the routes definition file.

p(note). **Tip**

If you need to add some configuration options specific to your application, it’s a good idea to add more options to the **application.conf** file. Configuration options in this file are read programmatically with **Play.configuration.get("propertyName")**.

If any library needs a specific configuration file, try to file it under the conf directory: **this directory is included in the Java ClassPath**.

You can add additional configuration files to the Play configuration by specifying a file name in **application.conf** as the value of a configuration option that has **@include.** at the start of the key. For example, if you define additional MIME types in a **conf/mime-types.conf**

bc. # Web fonts
mimetype.eot = application/vnd.ms-fontobject
mimetype.otf = application/octet-stream
mimetype.ttf = application/octet-stream
mimetype.woff = application/x-font-woff

you can include them by adding the following line to **application.conf**:

bc. @include.mime = mime-types.conf

h3. The lib directory

This directory contains all standard Java libraries needed by your application. They are automatically added to the Java classpath.
Expand Down

0 comments on commit e8865f1

Please sign in to comment.