Skip to content

Commit

Permalink
Set up SassParser only after the Gem's failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshchngs committed May 18, 2011
1 parent 58007ea commit 36f3228
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions peroxide.engine
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ function peroxide_css_alter(&$css) {
* @returns The filename of the processed file
*/
function _peroxide_process_sass($theme, $sass) {
// Setup the Sass Parser
$options = _peroxide_get_sass_options($theme);
$parser = new SassParser($options);

$info = pathinfo($sass);

// We put the new file in the same place because it's easier than reimplementing Drupal's url() rewriting
Expand All @@ -141,6 +137,10 @@ function _peroxide_process_sass($theme, $sass) {
}

try {
// Setup the Sass Parser
$options = _peroxide_get_sass_options($theme);
$parser = new SassParser($options);

$css = $parser->parse($sass)->render();
}
catch (SassException $e) {
Expand Down

0 comments on commit 36f3228

Please sign in to comment.