const mixinafPillow::PillowConfigIds
afPillow::PillowConfigIds
IocConfig values as provided by Pillow
. To change their value, override them in your AppModule
. Example:
using afIoc using afIocConfig using afPillow class AppModule { @Contribute { serviceType=ApplicationDefaults# } static Void configureAppDefaults(MappedConfig config) { config[PillowConfigIds.welcomePage] = "home" } }
- defaultContentType
const static Str defaultContentType := "afPillow.defaultContentType"
The default
Content-Type
to serve pages up as, if it can not be determined.Defaults to
MimeType("text/plain")
- enableRouting
const static Str enableRouting := "afPillow.enableRouting"
Set to
false
to disable the automatic routing of request URLs to Pillow page rendering.Defaults to
true
.- welcomePageName
const static Str welcomePageName := "afPillow.welcomePageName"
The component name (Str) of directory welcome pages.
Defaults to "index".
- welcomePageStrategy
const static Str welcomePageStrategy := "afPillow.welcomePageStrategy"
Set the welcome page strategy which defines the interaction between welcome page URIs and directory URIs.
Defaults to
onWithRedirects