Sha256: 6ffac10929598ecddaf9fa732bf75c81b824b73b1a70513e9da5e8a6df62504b

Contents?: true

Size: 411 Bytes

Versions: 20

Compression:

Stored size: 411 Bytes

Contents

# For plugin authors who need to generate urls pointing to ther doc pages.

module Octopress
  module Ink
    module Tags
      class DocUrlTag < Liquid::Tag
        def initialize(tag_name, markup, tokens)
          super
          @url = markup.strip
        end

        def render(context)
          '/' + File.join(context['page']['plugin']['docs_base_path'], @url)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
octopress-ink-1.0.0.rc.17 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.16 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.15 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.14 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.13 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.11 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.10 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.9 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.8 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.7 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.6 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.5 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.3 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.2 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.rc.1 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.alpha.45 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.alpha.44 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.alpha.43 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.alpha.42 lib/octopress-ink/tags/doc_url.rb
octopress-ink-1.0.0.alpha.41 lib/octopress-ink/tags/doc_url.rb