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

Striping comments #56

Open
zz9pzza opened this issue Dec 30, 2014 · 0 comments
Open

Striping comments #56

zz9pzza opened this issue Dec 30, 2014 · 0 comments

Comments

@zz9pzza
Copy link

zz9pzza commented Dec 30, 2014

Is it possible to configure the gem not to strip comments ?

1.9.3-p448 :001 > parser = CssParser::Parser.new
=>
1.9.3-p448 :002 > parser.add_block!("
1.9.3-p448 :003"> /* my css /
1.9.3-p448 :004"> body { /
hello world */
1.9.3-p448 :005"> background: yellow;
1.9.3-p448 :006"> }")
=> nil
1.9.3-p448 :007 > parser.each_rule_set do |rs|
1.9.3-p448 :008 > puts rs
1.9.3-p448 :009?> end
body { background: yellow; }
=> [{:media_types=>[:all], :rules=>body { background: yellow; }}]

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

No branches or pull requests

1 participant