SsrEngine
class SsrEngine(nodeExecutable: String? = null, port: Int? = null, externalSsrService: String? = null, rpcUrlPrefix: String? = null, rootId: String? = null, contextPath: String? = null, cacheTime: Int = DEFAULT_SSR_CACHE_TIME)(source)
Server-Side Rendering engine for Kilua.
Parameters
nodeExecutable
a path to the Node.js executable. If not provided, the default node
command will be used.
port
a port for the SSR service. If not provided, the default port 7788
will be used.
externalSsrService
an external SSR service URL. If provided, the local SSR service will not be started.
rpcUrlPrefix
a prefix for the Kilua RPC fullstack services.
rootId
an ID of the root element in the HTML template.
contextPath
a context path for the application.
cacheTime
a default time to cache SSR content in minutes (default is 10).
Constructors
Functions
Link copied to clipboard
Get CSS stylesheet content for SSR.
Link copied to clipboard
Get metadata for SSR.
Link copied to clipboard
Get root content for SSR.
Link copied to clipboard
Get CSS stylesheet content for SSR.
Link copied to clipboard
Get SSR content for the given URI and locale.
Link copied to clipboard
Restart the SSR NodeJs process.