Skip to content

Instantly share code, notes, and snippets.

@shortcircuit3
Created February 22, 2013 10:29
Show Gist options
  • Save shortcircuit3/5012422 to your computer and use it in GitHub Desktop.
Save shortcircuit3/5012422 to your computer and use it in GitHub Desktop.
Use this to output your stylesheet inline with middleman
<% css_path = sitemap.resources.select { |p| p.source_file.match(/all[.]css$/) }.first %>
<style type="text/css">
<%= css_path.render %>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment