Permalink
Browse files

Added fonts path, fixed Compass images_dir param, closes #34

  • Loading branch information...
1 parent f6f2674 commit 546a84243451ba0b919ad5b91b83f21c8b471d97 @stefanoverna stefanoverna committed Dec 13, 2011
@@ -60,7 +60,7 @@ protected function content_type() {
*/
protected function die_with_error($description) {
$description = preg_replace('/\n/', '\n', addslashes($description));
- echo sprintf("body::before { content: '%s'; font-family: monospace; };", $description);
+ echo sprintf('body::before { content: "%s"; font-family: monospace; }', $description);
die();
}
@@ -83,7 +83,10 @@ protected function process_file($file_path, $result_path, $temp_path) {
$config = array(
"http_path" => Wordless::theme_url(),
- "images_dir" => "assets/images",
+ "http_images_dir" => "assets/images",
+ "images_dir" => "../assets/images",
+ "http_fonts_dir" => "assets/fonts",
+ "fonts_dir" => "../assets/fonts",
"css_path" => $temp_path,
"relative_assets" => false,
"output_style" => ":" . $this->preference("compass.output_style"),
@@ -0,0 +1,4 @@
+# Fonts path
+
+Drop here all your fonts.
+

0 comments on commit 546a842

Please sign in to comment.