Mojolicious::Plugin::SassRenderer - Sass Renderer Plugin for Mojolicious
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%
Takes Sass formatted files and renderers them in CSS for your web-app.
Version 0.02
Byron Hammond, <byron_hammond <at> yahoo.com.au>
<byron_hammond <at> yahoo.com.au>
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.
bug-mojolicious-plugin-sassrenderer at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Mojolicious::Plugin::SassRenderer
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mojolicious-Plugin-SassRenderer
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Mojolicious-Plugin-SassRenderer
CPAN Ratings
http://cpanratings.perl.org/d/Mojolicious-Plugin-SassRenderer
Search CPAN
http://search.cpan.org/dist/Mojolicious-Plugin-SassRenderer/
Sebastian Riedel <sri> for Mojolicious and the suggestion to put this on CPAN
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.
To install Mojolicious::Plugin::SassRenderer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::SassRenderer
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::SassRenderer
For more information on module installation, please visit the detailed CPAN module installation guide.