Cecil

ExternalBody extends AbstractGenerator implements GeneratorInterface

ExternalBody generator class.

This class is responsible for generating the body of pages by fetching content from external sources specified in the 'external' variable of each page. It reads the content from the specified URL, converts it to HTML using the Converter, and sets the resulting HTML as the body of the page. If an error occurs while fetching the content, it logs the error message.

Table of Contents

Interfaces

GeneratorInterface
Generator interface.

Properties

$builder  : Builder
$config  : Config
$generatedPages  : Collection

Methods

__construct()  : mixed
Gives the Builder to the object.
generate()  : void
Creates pages and adds it to collection.
runGenerate()  : Collection
Run the `generate` method of the generator and returns pages.

Properties

Methods

generate()

Creates pages and adds it to collection.

public generate() : void
 
On this page

Search results