Bailador::Plugin::AssetPack::SASS - automatically serve static files
use Bailador;
use Bailador::Plugin::AssetPack::SASS;
Bailador::Plugin::AssetPack::SASS.install: app;
This module lets you transparently use SASS by
handling SASS -> CSS
conversion automatically.
This module requires the presence of sass
command line utility. See
http://sass-lang.com/install
Bailador::Plugin::AssetPack::SASS.install: $app;
Takes one argument: your Bailador::App
object.
Starts sass
watcher and creates a route for delivering CSS files from
/assets/sass/*
URL, where the filename (and directory structure) from
assets/sass
directory is preserved, except you'd refer to the file by
its .css
extension. Attempting to access files with other extensions will
result in 404s.
NOTE: if you're also using
Bailador::Plugin::Static,
be sure to include it AFTER ::AssetPack::SASS
or it'll shadow the created route:
Bailador::Plugin::AssetPack::SASS.install: $app;
Bailador::Plugin::Static.install: $app;
Fork this module on GitHub: https://github.com/zoffixznet/perl6-Bailador-Plugin-AssetPack-SASS
To report bugs or request features, please use https://github.com/zoffixznet/perl6-Bailador-Plugin-AssetPack-SASS/issues
Zoffix Znet (http://zoffix.com/)
You can use and distribute this module under the terms of the
The Artistic License 2.0. See the LICENSE
file included in this
distribution for complete details.