NAME
Web::AssetLib::InputEngine::Content - allows importing an asset as a raw string
SYNOPSIS
my $library = My::AssetLib::Library->new(
input_engines => [
Web::AssetLib::InputEngine::Content->new()
]
);
my $asset = Web::AssetLib::Asset->new(
type => 'javascript',
input_engine => 'Content',
input_args => { content => "console.log('hello world');", }
);
$library->compile( asset => $asset );
USAGE
No configuration required. Simply instantiate, and include in your library's list of input engines.
Assets using the Content input engine must provide content
input arg.
SEE ALSO
Web::AssetLib::InputEngine::RemoteFile
Web::AssetLib::InputEngine::LocalFile
AUTHOR
Ryan Lang <rlang@cpan.org>