| 1 |
# This is the main configuration file of your Dancer2 app |
| 2 |
# env-related settings should go to environments/$env.yml |
| 3 |
# all the settings in this file will be loaded at Dancer's startup. |
| 4 |
|
| 5 |
# === Basic configuration === |
| 6 |
|
| 7 |
# Your application's name |
| 8 |
appname: "[d2% appname %2d]" |
| 9 |
|
| 10 |
# The default layout to use for your application (located in |
| 11 |
# views/layouts/main.tt) |
| 12 |
layout: "main" |
| 13 |
|
| 14 |
# when the charset is set to UTF-8 Dancer2 will handle for you |
| 15 |
# all the magic of encoding and decoding. You should not care |
| 16 |
# about unicode within your app when this setting is set (recommended). |
| 17 |
charset: "UTF-8" |
| 18 |
|
| 19 |
# === Engines === |
| 20 |
# |
| 21 |
# NOTE: All the engine configurations need to be under a single "engines:" |
| 22 |
# key. If you uncomment engine configurations below, make sure to delete |
| 23 |
# all "engines:" lines except the first. Otherwise, only the last |
| 24 |
# "engines:" block will take effect. |
| 25 |
|
| 26 |
# template engine |
| 27 |
# simple: default and very basic template engine |
| 28 |
# template_toolkit: TT |
| 29 |
|
| 30 |
#template: "simple" |
| 31 |
|
| 32 |
template: "template_toolkit" |
| 33 |
session: "YAML" |
| 34 |
engines: |
| 35 |
template: |
| 36 |
template_toolkit: |
| 37 |
# Note: start_tag and end_tag are regexes |
| 38 |
start_tag: '<%' |
| 39 |
end_tag: '%>' |
| 40 |
session: |
| 41 |
YAML: |
| 42 |
cookie_name: [d2% appname %2d].session |
| 43 |
#is_secure: 1 |
| 44 |
#is_http_only: 1 |
| 45 |
|
| 46 |
# session engine |
| 47 |
# |
| 48 |
# Simple: in-memory session store - Dancer2::Session::Simple |
| 49 |
# YAML: session stored in YAML files - Dancer2::Session::YAML |
| 50 |
# |
| 51 |
# Check out metacpan for other session storage options: |
| 52 |
# https://metacpan.org/search?q=Dancer2%3A%3ASession&search_type=modules |
| 53 |
# |
| 54 |
# Default value for 'cookie_name' is 'dancer.session'. If you run multiple |
| 55 |
# Dancer apps on the same host then you will need to make sure 'cookie_name' |
| 56 |
# is different for each app. |
| 57 |
# |
| 58 |
#engines: |
| 59 |
# session: |
| 60 |
# Simple: |
| 61 |
# cookie_name: testapp.session |
| 62 |
# |
| 63 |
#engines: |
| 64 |
# session: |
| 65 |
# YAML: |
| 66 |
# cookie_name: eshop.session |
| 67 |
# is_secure: 1 |
| 68 |
# is_http_only: 1 |