nuckty
RU
All sections →

Document extensions

A document extension registers a handler through env.document. The handler receives page data and returns a document BEMTree. See the guide for the contract and an example.

Available implementation

nuckty-ext-block-root combines document and block extensions. It registers the standard handler and adds a level containing the root template. The current family has no separate nuckty-ext-document-* package.

A site can load its own local handler instead of root. Each build needs exactly one handler.