-
-
Save nathos/79681 to your computer and use it in GitHub Desktop.
WikiTrail - wiki-style backlinks for Webby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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