MVC::Neaf::X::Files - serve static content for Not Even A Framework.
use MVC::Neaf; MVC::Neaf->static( "/path/in/url" => "/local/path", %options );
%options may include:
buffer - buffer size for serving files.
cache_ttl - if given, files below the buffer size will be stored in memory for cache_ttl seconds. EXPERIMENTAL. Cache API is not yet established.
Returns a Neaf-compatible hander sub.
To install MVC::Neaf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MVC::Neaf
CPAN shell
perl -MCPAN -e shell install MVC::Neaf
For more information on module installation, please visit the detailed CPAN module installation guide.