Skip to content

Instantly share code, notes, and snippets.

@dlubitz
Last active August 29, 2024 08:14
Show Gist options
  • Save dlubitz/9df1f8b6f18a43d2a7e230c9c9deaa89 to your computer and use it in GitHub Desktop.
Save dlubitz/9df1f8b6f18a43d2a7e230c9c9deaa89 to your computer and use it in GitHub Desktop.
Maintenance page until date time
root {
launch {
@context.launchDateTime = ${Date.parse('2024-08-26 21:41:00+02:00', 'Y-m-d H:i:sP')}
condition = ${Date.now() < launchDateTime && !Security.isAuthenticated()}
@position = "start"
renderer = ${File.readFile("resource://My.Package/Private/Template/index.htm")}
@cache {
maximumLifetime = ${launchDateTime.timestamp - Date.now().timestamp}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment