def erb(templateFileName)
      @binding = binding
      fullTemplateFilePath = relative_path(@rootLinkPath + templateFileName)
      File.open(fullTemplateFilePath, "r") do |input|
        templateText = input.read
        template = ERB.new(templateText, nil, nil)
        template.filename = templateFileName
        result = template.result(@binding)
      end
    end
def erb(templateFileName)
      @binding = binding
      fullTemplateFilePath = relative_path(@rootLinkPath + templateFileName)
      File.open(fullTemplateFilePath, "r") do |input|
        templateText = input.read
        template = ERB.new(templateText, nil, nil)
        template.filename = templateFileName
        result = template.result(@binding)
      end
    end
def erb ( templateFileName ) @binding = binding fullTemplateFilePath = relative_path ( @rootLinkPath + templateFileName ) File . open ( fullTemplateFilePath , "r" ) do | input | templateText = input . read template = ERB . new ( templateText , nil , nil ) template . filename = templateFileName result = template . result ( @binding ) end end
Method to render an ERB template file in the context of this object
Method to render an ERB template file in the context of this object