Skip to content

Instantly share code, notes, and snippets.

@nathos
Forked from TwP/wiki_trail.rb
Created March 16, 2009 03:16
Show Gist options
  • Save nathos/79681 to your computer and use it in GitHub Desktop.
Save nathos/79681 to your computer and use it in GitHub Desktop.
WikiTrail - wiki-style backlinks for Webby
module WikiTrail
def wiki_trail( *args )
links = args.flatten.map do |name|
"> #{link_to_page_unless_current name} <"
end
links.join(" ")
end
end
Webby::Helpers.register WikiTrail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment