ePages 6.15.1 - DE_EPAGES/Presentation/API/LESSCompiler.pm

Package DE_EPAGES::Presentation::API::LESSCompiler

This module provides an API for the LESS compiler.

@EXPORT_OK
CompileLESS

Functions

CompileLESS
GetLessPath
GetLessScript

CompileLESS

Compile the LESS code in the given source file andwrites the native CSS code to the target file.

Syntax
CompileLESS($SourceFilePath, $TargetFilePath);
Input
$SourceFilePath (string)
LESS source (full file path and name)
$TargetFilePath (string)
target for output (full file path and name)

GetLessPath

Returns the full directory path to the LESS sorces.

Syntax
my $CompilerJar = GetLessPath();
Return
$Javascript (string)
full directory path to the LESS sorces

GetLessScript

Returns the full file path to the LESS compiler.

Syntax
my $CompilerJar = GetLessScript();
Return
$Javascript (string)
full file path to the LESS compiler