Skip to content

Bailador/perl6-Bailador-Plugin-AssetPack-SASS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Perl 6 module: Automatically preprocess and serve SASS files in Bailador apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Other 100.0%