我想将scss用于imgkit,但imgkit只接受css。我想把scss渲染成一个字符串,但我不知道如何将它传递给imgkit。
kit = IMGKit.new(get_card_html, :quality => 70, :width=> 200, :height=> 324)
// IMGKit normally takes in a file path
kit.stylesheets << Rails.root.join('app', 'assets','stylesheets' ,'cards.css').to_s
// rendered it to string. how do i pass it into imgkit?
Onethingaday::Application.assets.find_asset('cards.css').body