class Jekyll::RemoteInclude
Public Class Methods
new(tag_name, remote_include, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll-remote-include.rb, line 8 def initialize(tag_name, remote_include, tokens) super @remote_include = remote_include end
Public Instance Methods
open(url)
click to toggle source
# File lib/jekyll-remote-include.rb, line 13 def open(url) Net::HTTP.get(URI.parse(url.strip)).force_encoding 'utf-8' end
render(context)
click to toggle source
# File lib/jekyll-remote-include.rb, line 17 def render(context) open("#{@remote_include}") end