# curly_bracket_parser
Simple parser to replace curly brackets {{like_this}} inside strings like URLs, Texts or even files easily.
alpha version ... to be done ...
# Contents
* [Installation](#installation)
* [Usage](#usage)
* [Documentation](#documentation)
* [Contributing](#contributing)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'curly_bracket_parser'
```
And then execute:
$ bundle install
Or install it yourself as:
$ gem install curly_bracket_parser
## Common information
TODO
## Usage
TODO
### Examples
#### Basic
```ruby
url = "https://my-domain.com/items/{{item_id}}"
final_url = CurlyBracketParser.parse url, item_id: 123
# => "https://my-domain.com/items/123"
```
#### Filters
```ruby
url = "https://my-domain.com/catalog/{{item_name|snake_case}}"
final_url = CurlyBracketParser.parse url, item_name: 'MegaSuperItem'
# => "https://my-domain.com/catalog/mega_super_item"
```
#### Globals
TODO
## Documentation
Check out the doc at RubyDoc
https://www.rubydoc.info/gems/curly_bracket_parser
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/magynhard/curly_bracket_parser. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.