Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

how to use compass, haml? #3

Open
millisami opened this issue Dec 13, 2011 · 4 comments
Open

how to use compass, haml? #3

millisami opened this issue Dec 13, 2011 · 4 comments

Comments

@millisami
Copy link

I checked out the sinatra_base branch.
But there ain't any place where to write sass n haml.

I even tried to create a new theme bundle exec thor fumblr:create_theme mytheme, but it just generated mytheme folder at themes dir with empty mytheme.html file.

@millisami
Copy link
Author

Well after looking at the thor tasks, by passing the --compass and --sass creates the compass/sass file.

thor fumblr:create_theme mytheme --compass --sass

@pengwynn
Copy link
Owner

Yup, that's it. I need to document that in the readme when it's finished. Hope it's working for you, feedback welcomed.

@millisami millisami reopened this Dec 14, 2011
@millisami
Copy link
Author

But what about the compilation of sass into css. Do I have to run compass watch those file separately or the server will handle it on refresh?

And another is how to reference this CSS file in the theme?

@pengwynn
Copy link
Owner

Yes, you have to run compass watch since using compass with your theme is optional. Each theme is a self contained compass project or just a theme.html if you want to do a single page theme with a <style> block.

I just pushed a change with an updated yml example. Just reference your stylesheets to your external server like you normally would. Any <link> hrefs that match the server you put in your config file (either http or https) will be replaced with a relative path that maps to a public folder inside of your theme.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants