The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Web::AssetLib::OutputEngine::LocalFile - allows exporting an asset or bundle to your local filesystem

SYNOPSIS

    my $library = My::AssetLib::Library->new(
        output_engines => [
            Web::AssetLib::OutputEngine::LocalFile->new(
                output_path => '/my/local/output/path',
                link_path => '/output/path/relative/to/webserver'
            )
        ]
    );

USAGE

Instantiate with output_path and link_path parameters, and include in your library's output engine list.

ATTRIBUTES

output_path

String; the absolute path that the compiled assets should be exported to

String; the path relative to your webserver root, which points to the "output_path". Used in generating HTML tags.

SEE ALSO

Web::AssetLib::OutputEngine

AUTHOR

Ryan Lang <rlang@cpan.org>