lib/origen/generator/compiler.rb
# Where compile will place the compiled content in an output file, this method will return
# it as a string to the caller (i.e. without creating an output file)
#
# It expects an absolute path to a single template file as the file argument.
#
# @api private


It expects an absolute path to a single template file as the file argument.
It expects an absolute path to a single template file as the file argument .
def compile_inline(file, options = {})
        initial_options = options.merge({})
        options = {
          check_for_changes: false,
          sub_template:      false,
          collect_stats:     false,
          initial_options:   initial_options
        }.merge(options)
        @scope = options[:scope]
        file = Pathname.new(file) unless options[:string]
        run_erb(file, options).strip
      end
def compile_inline ( file , options = { } ) initial_options = options . merge ( { } ) options = { check_for_changes : false , sub_template : false , collect_stats : false , initial_options : initial_options } . merge ( options ) @scope = options [ :scope ] file = Pathname . new ( file ) unless options [ :string ] run_erb ( file , options ) . strip end
Where compile will place the compiled content in an output file, this method will return
it as a string to the caller (i.e.
Where compile will place the compiled content in an output file this method will return it as a string to the caller ( i . e .
file
<not_specific>
options
<not_specific>
api
None