Skip to content

attribute method should respect local variable names before attempting to invoke the symbol on current_object #23

@lafave

Description

@lafave

Example

get '/hello' do
  user = User.some_lookup_method(params['id])
  bldr :'template', :locals => {:user => user, :raw_value => rand(10)}
end

# template.bldr
object :user => user do
  attribute :raw_value => raw_value # boom!
end

https://github.com/ajsharp/bldr/blob/master/lib/bldr/node.rb#L166

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions