Class: JekyllGithubSample::ReferenceTag

Inherits:
CodeTag
  • Object
show all
Defined in:
lib/jekyll_github_sample/reference_tag.rb

Constant Summary

Constants included from TextUtils

TextUtils::INDEN_REGEX

Instance Method Summary collapse

Methods inherited from CodeTag

#initialize

Methods included from TextUtils

#remove_common_indentation

Constructor Details

This class inherits a constructor from JekyllGithubSample::CodeTag

Instance Method Details

#render(context) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/jekyll_github_sample/reference_tag.rb', line 4

def render(context)
  "<div class=\"github-sample-reference\">\n  <div class=\"author-info\">\n<a href=\"\#{@github_file.web_uri}\">This Github Sample</a> is by <a href=\"\#{@github_file.user_uri}\">\#{@github_file.user}</a>\n  </div>\n  <div class=\"meta-info\">\n\#{@github_file.filename} <a href=\"\#{@github_file.web_uri}\">view</a> <a href=\"\#{@github_file.raw_uri}\">raw</a>\n  </div>\n</div>\n".strip
end