Module | Erubis |
In: |
merb-core/lib/merb-core/controller/template.rb
merb-core/lib/merb-core/gem_ext/erubis.rb |
Loads a file, runs it through Erubis and parses it as YAML.
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
# 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