Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added ignore and only css selectors to the stylesheet parsing #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azt3k
Copy link

@azt3k azt3k commented Jul 2, 2014

This gives enough flexibility to selectively include or exclude external style sheets. The main reason I needed this was to provide a workaround for bypassing an external style sheet with @font-face declarations.

<link id="google-font" href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
<link href='css/styles.css' rel='stylesheet' type='text/css'>
html = File.read 'path/to/file.html'
html = InlineStyle.process html, stylesheets_path: 'src', ignore: '#google-font'

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

Successfully merging this pull request may close these issues.

1 participant