About Sassify

Automatically compile Sass/SCSS/Compass in your ProcessWire templates

Category 1Development Tools
Modules that have more to do with assisting development of a site rather than managing its content.
Category 2Markup Generation
Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin).
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorrudy
Module Version0.0.5
Class NameSassify
Compatibility2.5, 2.6, 2.7, 3.0
Date AddedSeptember 21, 2016
Last UpdatedApril 15, 2017
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/Sassify/
How to install or uninstall modules

README

ProcessWire Sassify

Version 0.0.5

This module allows you to use SASS/SCSS/Compass with your ProcessWire templates.

How to use

Single SASS/SCSS file

<link rel="stylesheet" type="text/css" href="<?php echo Sassify::css('sass/my_style.scss'); ?>">

Array of SASS/SCSS files

<link rel="stylesheet" type="text/css" href="<?php echo Sassify::css([
	'sass/style_1.scss',
	'sass/style_2.scss',
	'sass/style_3.scss',
]); ?>">

Bugs/Issues

Comments

  • Rick

    Rick 2 years ago 60

    Cool idea! Does this compile on every page load, or does it cache? I'd imagine every page load would cause a significant slowdown, so assuming it's caching the css, how does it work (i.e when does it know to rebuild?).

    • Jon Stewart

      Jon Stewart 1 year ago 00

      Why does it matter? You're only compiling scss when developing. The final css output, usually 'styles.css' is the only thing uploaded to your production site.

      Hope this helps clarify.

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.