frank icon indicating copy to clipboard operation
frank copied to clipboard

add documentation for compass integration

Open trvsdnn opened this issue 15 years ago • 7 comments

Need it somewhere. Maybe start working on the wiki?

trvsdnn avatar Sep 11 '10 00:09 trvsdnn

Yes please!

charlesroper avatar Nov 25 '10 13:11 charlesroper

I'm laying out my tools for a string of static projects, and I'm down to nanoc+Compass or Frank+Compass, but leaning towards Frank. I will put whatever I learn into the wiki. A tutorial on creating a compass+frank project would be helpful (especially for someone like me who is new to both tools).

Is Compass-Integration correct? According to railsjedi's last comment no configuration is needed now.

edrex avatar Aug 12 '11 21:08 edrex

It should be fine, assuming dynamic/stylesheets is where your stylesheets are. If you are looking at nanoc, and you find it is handled better there. I wouldn't mind hearing suggestions about how to better handle the integration.

If i remember correctly the main problem was getting plugins to load.

trvsdnn avatar Aug 15 '11 13:08 trvsdnn

Adding @import "compass/css3" at the top of my sass file worked fine for me the other day.

wyattdanger avatar Aug 15 '11 14:08 wyattdanger

Yeah, seems like the built in modules work okay. Using plugins like 960 https://github.com/chriseppstein/compass-960-plugin are a little different i think. You have to require the plugin, so it needs to be in scope for compass... Any luck with that?

trvsdnn avatar Aug 15 '11 18:08 trvsdnn

The line that causes the trouble is base.rb:250. Copying that line into setup.rb after importing the compass plugin (or sourcing a compass config file) allows the plugin to work:

require 'ninesixty'
# or
Compass.add_project_configuration './compass_config.rb'

# needed to update the include path for sass etc
Frank.sass_options = Compass.sass_engine_options

Moving that line outside the begin..rescue..end for the compass import would allow customizing compass in setup.rb without the extra line. Or I guess another option would be to check for a hard-coded compass config file like PROJECT_BASE/compass_config.rb. I could make a commit for either.

edrex avatar Aug 15 '11 23:08 edrex

updated https://github.com/blahed/frank/wiki/Compass-Integration

edrex avatar Aug 15 '11 23:08 edrex