Module Erubis
In: merb-core/lib/merb-core/controller/template.rb
merb-core/lib/merb-core/gem_ext/erubis.rb

Methods

Classes and Modules

Module Erubis::Basic
Module Erubis::BlockAwareEnhancer
Class Erubis::BlockAwareEruby
Class Erubis::MEruby

Public Class methods

Loads a file, runs it through Erubis and parses it as YAML.

Parameters
file<String>:The name of the file to load.
binding<Binding>:The binding to use when evaluating the ERB tags. Defaults to the current binding.

:api: private

[Source]

    # File merb-core/lib/merb-core/gem_ext/erubis.rb, line 80
80:   def self.load_yaml_file(file, binding = binding)
81:     YAML::load(Erubis::MEruby.new(IO.read(File.expand_path(file))).result(binding))
82:   end

[Validate]