| 1 | <h4>Description</h4>This file is located in an application's code repository (e.g. `apps/myApp/` or `apps/myApp/code/`, depending on your setup). A wide variety of properties can be defined here. Generally, any imaginable name can be used as a property and assigned a string value the way |
| 3 | This file is located in an application's code repository (e.g. <tt>apps/myApp/</tt> or <tt>apps/myApp/code/</tt>, depending on your setup). A wide variety of properties can be defined here. Generally,propertyName = any imaginable name can be used as a property and assigned a string value the waypropertyValue |
| 5 | <tt><i>propertyName = propertyValue</i></tt>Properties defined in such a way can be evaluated from inside Helma's scripting environment by using the `getProperty()` function. |
| 7 | Properties defined in such a way Several application specific settings can be evaluated from inside Helma's scripting environment by using controlled trough pre-defined properties. See the <tt>getProperty()</tt> function[Server and Application Properties] for a complete overview. |
| 9 | Several application specific settings Many of those pre-defined properties also can be controlled trough pre-defined propertiesdefined server-wide in [server.properties]. See the *server and application properties list|Server and Application Properties* for a complete overviewHowever, any property that is set there will be overwritten by an appropriate setting in [app.properties]. |
| 11 | Many of those pre-defined properties also can be defined server-wide in <tt>*server.properties*</tt>. However, any property that is set there will be overwritten by an appropriate setting in <tt>app.properties</tt>. |
| 13 | <h4>Example</h4> # Setting some properties: |
| 14 | backgroundColor = #3333ff |
| 15 | title = "Hello, World!"</tt> |
| 15 | <tt># Setting some properties:Accessing the properties e.g. from `root/actions.js`: |
| 16 | backgroundColor = #3333ff |
| 17 | title = "Hello, World!"</tt> |
| 17 | Accessing the properties e.g. from <tt>root/main.hac</tt>: var bgColor = getProperty("backgroundColor"); |
| 18 | <tt>var bgColor = getProperty("backgroundColor"); res.write(bgColor); |
| 19 | res.write(bgColor); // #3333ff |
| 20 | <i>#3333ff</i> |
| 19 | var title = getProperty("title"); |
| 20 | res.write(title); |
| 21 | <i>Hello // "Hello, World!</i></tt>World!" |
| 22 | |