Perl 6 module: Automatically preprocess and serve SASS files in Bailador apps
Perl6
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples Update app.p6 May 6, 2016
lib/Bailador/Plugin/AssetPack Make it always operate on a Bailador::App object May 6, 2016
.gitignore First commit Apr 30, 2016
.travis.yml First commit Apr 30, 2016
Changes First commit Apr 30, 2016
LICENSE
META6.json Make it always operate on a Bailador::App object May 6, 2016
README.md Make it always operate on a Bailador::App object May 6, 2016

README.md

NAME

Bailador::Plugin::AssetPack::SASS - automatically serve static files

SYNOPSIS

use Bailador;
use Bailador::Plugin::AssetPack::SASS;

Bailador::Plugin::AssetPack::SASS.install: app;

DESCRIPTION

This module lets you transparently use SASS by handling SASS -> CSS conversion automatically.

NON-PERL 6 RESOURCES

This module requires the presence of sass command line utility. See http://sass-lang.com/install

METHODS

.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;

REPOSITORY

Fork this module on GitHub: https://github.com/zoffixznet/perl6-Bailador-Plugin-AssetPack-SASS

BUGS

To report bugs or request features, please use https://github.com/zoffixznet/perl6-Bailador-Plugin-AssetPack-SASS/issues

AUTHOR

Zoffix Znet (http://zoffix.com/)

LICENSE

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.