Skip to content

Instantly share code, notes, and snippets.

@lilith
Created January 24, 2013 03:56
Show Gist options
  • Save lilith/4617511 to your computer and use it in GitHub Desktop.
Save lilith/4617511 to your computer and use it in GitHub Desktop.
Slim - negative argument
== yield
- if page.meta.includes_editions
- page.meta.includes_editions.split(',').map{ |id| index["plugins/editions/#{id.strip}"] }.to_a.sort_by {|i| i.meta.sort_field}.each do |e|
- if e
h3 Also includes plugins from the
a href="#{e.path}"
= e.heading
- e.edition_plugins.each do |plugin|
li
a(href="#{plugin.path}")= plugin.heading
| -
= plugin.meta.tagline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment