lib/volt/server/html_parser/attribute_scope.rb
def add_reactive_template(content)
    path = @path + "/_rv#{@binding_number}"
    new_handler = ViewHandler.new(path, false)
    @binding_number += 1

    SandlebarsParser.new(content, new_handler)

    # Close out the last scope
    new_handler.scope.last.close_scope

    # Copy in the templates from the new handler
    new_handler.templates.each_pair do |key, value|
      @handler.templates[key] = value
    end

    return path
  end
# Take the attributes and create any bindings
Take the attributes and create any bindings
Take the attributes and create any bindings
def add_reactive_template(content)
    path = @path + "/_rv#{@binding_number}"
    new_handler = ViewHandler.new(path, false)
    @binding_number += 1
    SandlebarsParser.new(content, new_handler)
    new_handler.scope.last.close_scope
    new_handler.templates.each_pair do |key, value|
      @handler.templates[key] = value
    end
    return path
  end
def add_reactive_template ( content ) path = @path + "/_rv#{@binding_number}" new_handler = ViewHandler . new ( path , false ) @binding_number += 1 SandlebarsParser . new ( content , new_handler ) new_handler . scope . last . close_scope new_handler . templates . each_pair do | key , value | @handler . templates [ key ] = value end return path end
Take the attributes and create any bindings
Take the attributes and create any bindings
# Close out the last scope # Copy in the templates from the new handler
content