a cool thing you can do with gsub block

```ruby
data.gsub(/%{([^}]*)}/) do |match|
    lookup_value(match, scope, extra_data)
end
```