Source Code Docs

RealtimeCompiler
in package

RealtimeCompiler Class

The realtime compiler runs on each request to the live preview. Its most important job is to inject the stylesheets and scripts.

Usage

$compiler = new RealtimeCompiler; // Create the compiler object

$compiler->getStyles(); // Compile and get the styles as an inline string
$compiler->getScripts(); // Get the scripts as an inline string
Tags
uses
Laradocgen

Table of Contents

__construct()  : mixed
Construct the class and run the compiler when the class is created.
__invoke()  : mixed
Run the realtime compiler.
getScripts()  : string
Return the scripts.
getStyles()  : string
Compile the styles and return them.

Methods

__construct()

Construct the class and run the compiler when the class is created.

public __construct() : mixed
Return values
mixed

__invoke()

Run the realtime compiler.

public __invoke() : mixed
Return values
mixed

getScripts()

Return the scripts.

public getScripts() : string
Return values
string

of inline scripts

getStyles()

Compile the styles and return them.

public getStyles() : string
Return values
string

of inline styles

Search results