NAME

Mojolicious::Plugin::SassRenderer - Sass Renderer Plugin for Mojolicious

SYNOPSIS

Renders Sass files into CSS for your Mojolicious web-apps

package MyApp;
use Mojo::Base 'Mojolicious';

sub startup {
    $self = shift;
    $self->plugin('sass_renderer'); 
}

1;


# template
<!doctype html><html>
  <head>
    <style type="text/css">
      <%== include 'stylesheets/main', format => 'txt', handler => 'sass' %>
    </style>
  </head>
  <body>
  </body>
</html>


# sass: MOJO_HOME/templates/stylesheets/main.txt.sass
$menuColor: #eee

#menubar
  background-color: $menuColor
  width: 75%

DESCRIPTION

Takes Sass formatted files and renderers them in CSS for your web-app.

VERSION

Version 0.02

AUTHOR

Byron Hammond, <byron_hammond <at> yahoo.com.au>

BUGS

Since this simply uses Text::Sass, it's limited by it's bugs.

Please report any bugs or feature requests to bug-mojolicious-plugin-sassrenderer at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Mojolicious-Plugin-SassRenderer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Mojolicious::Plugin::SassRenderer

You can also look for information at:

ACKNOWLEDGEMENTS

Sebastian Riedel <sri> for Mojolicious and the suggestion to put this on CPAN

LICENSE AND COPYRIGHT

Copyright 2011 Byron Hammond.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.