diff --git a/Gemfile b/Gemfile index 3e99f3e..68cc260 100644 --- a/Gemfile +++ b/Gemfile @@ -14,6 +14,8 @@ gem 'w3c_validators' # ical files gem 'icalendar' +gem 'therubyracer' + # Autoprefixing for class gem 'autoprefixer-rails' diff --git a/Gemfile.lock b/Gemfile.lock index 41b9c15..452be76 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -38,6 +38,7 @@ GEM icalendar (2.4.1) json (2.0.2) kramdown (1.12.0) + libv8 (3.16.14.15) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) @@ -71,6 +72,9 @@ GEM shellany (0.0.1) slop (3.6.0) terminal-notifier-guard (1.7.0) + therubyracer (0.12.2) + libv8 (~> 3.16.14.0) + ref thor (0.19.1) w3c_validators (1.2) json @@ -91,6 +95,7 @@ DEPENDENCIES nanoc (= 4.3.7) sass terminal-notifier-guard + therubyracer w3c_validators BUNDLED WITH diff --git a/Rules b/Rules index 160e19b..58a7860 100644 --- a/Rules +++ b/Rules @@ -127,7 +127,7 @@ compile '/projects/*' do end # Don't create specific project pages for now -route '/projects/*' do; end +route '/projects/*' do; end # # GENERIC ERB PAGES diff --git a/lib/filters/autoprefixer.rb b/lib/filters/autoprefixer.rb index b96b310..bbb374e 100644 --- a/lib/filters/autoprefixer.rb +++ b/lib/filters/autoprefixer.rb @@ -1,4 +1,6 @@ +require 'v8' require 'autoprefixer-rails' + Nanoc::Filter.define(:autoprefixer) do |content, _params| AutoprefixerRails.process(content).css end