Class: RubyView

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyview/context.rb,
lib/rubyview.rb,
lib/rubyview/dsl.rb,
lib/rubyview/helpers/tag.rb

Overview

Responsibility is to hold context of the eval of rendered templates Include helper methods for use in library DSL

Defined Under Namespace

Modules: DSL, Helpers Classes: Context

Class Method Summary collapse

Class Method Details

.render(path_to_template) ⇒ Object



7
8
9
10
# File 'lib/rubyview.rb', line 7

def self.render(path_to_template)
  context = RubyView::Context.new
  context.call(path_to_template)
end