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(Configuration config) {
        config[PillowConfigIds.welcomePage] = "home"
    }
}
cacheControl

Source

const static Str cacheControl := "afPillow.cacheControl"

The cache-control HTTP header value to set in rendered Pillow pages. The header is set before the page is rendered, making it easy to override / re-set in any @InitRender method.

The cache-control HTTP header is only set in production mode.

Defaults to "max-age=0, no-cache"

defaultContentType

Source

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/html; charset=utf-8")

welcomePageName

Source

const static Str welcomePageName := "afPillow.welcomePageName"

The component name (Str) of directory welcome pages.

Defaults to "index".

welcomePageStrategy

Source

const static Str welcomePageStrategy := "afPillow.welcomePageStrategy"

Set the welcome page strategy which defines the interaction between welcome page URIs and directory URIs.

Defaults to WelcomePageStrategy.onWithRedirects