Class: Jekyll::ThemeBuilder::ERBRenderer

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/jekyll/theme_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(theme_builder) ⇒ ERBRenderer

Returns a new instance of ERBRenderer.


104
105
106
# File 'lib/jekyll/theme_builder.rb', line 104

def initialize(theme_builder)
  @theme_builder = theme_builder
end

Instance Method Details

#jekyll_version_with_minorObject


108
109
110
# File 'lib/jekyll/theme_builder.rb', line 108

def jekyll_version_with_minor
  Jekyll::VERSION.split(".").take(2).join(".")
end

#render(contents) ⇒ Object


116
117
118
# File 'lib/jekyll/theme_builder.rb', line 116

def render(contents)
  ERB.new(contents).result binding
end

#theme_directoriesObject


112
113
114
# File 'lib/jekyll/theme_builder.rb', line 112

def theme_directories
  SCAFFOLD_DIRECTORIES
end