lib/volt/server/html_parser/view_parser.rb
def data
    templates = @templates.deep_clone

    templates.each_pair do |name, value|
      if value['bindings']
        value['bindings'].each_pair do |number, binding|
          value['bindings'][number] = binding.map {|code| eval(code) }
        end
      end
    end

    return templates
  end
# Returns a parsed version of the data (useful for backend rendering
# and testing)
Returns a parsed version of the data (useful for backend rendering
and testing)
Returns a parsed version of the data ( useful for backend rendering and testing )
def data
    templates = @templates.deep_clone
    templates.each_pair do |name, value|
      if value['bindings']
        value['bindings'].each_pair do |number, binding|
          value['bindings'][number] = binding.map {|code| eval(code) }
        end
      end
    end
    return templates
  end
def data templates = @templates . deep_clone templates . each_pair do | name , value | if value [ 'bindings' ] value [ 'bindings' ] . each_pair do | number , binding | value [ 'bindings' ] [ number ] = binding . map { | code | eval ( code ) } end end end return templates end
Returns a parsed version of the data (useful for backend rendering
and testing)
Returns a parsed version of the data ( useful for backend rendering and testing )