onLoadPartial

abstract fun onLoadPartial(loader: KbPartialLoader)(source)

Registers loader to resolve {{> key }} partials during renders that use the resulting environment. Registering a loader is optional; the default is no loader. The most recent registration wins.

Parameters

loader

the loader invoked (lazily, and at most once per distinct key) to obtain the KbTemplate for a partial key.