const classafPillow::PillowConfigIds
sys::Obj 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(Configuration config) {
config[PillowConfigIds.welcomePage] = "home"
}
}
- cacheControl
const static Str cacheControl := "afPillow.cacheControl"The
cache-controlHTTP header value to set in rendered Pillow pages. The header is set just before the page is rendered, making it easy to override / re-set in any@InitRendermethod.Defaults to
"max-age=0, no-cache"- defaultContentType
const static Str defaultContentType := "afPillow.defaultContentType"The default
Content-Typeto serve pages up as, if it can not be determined.Defaults to
MimeType("text/plain")- enableRouting
const static Str enableRouting := "afPillow.enableRouting"Set to
falseto 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