Sha256: c90e5c0a39a29a7a5b0da90c04189fc73347c1f3dd5453686cd55f0ba74f8f68
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
# 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) <a name="installation"></a> ## 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 <a name="usage"></a> ## 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 <a name="documentation"></a> ## Documentation Check out the doc at RubyDoc <a href="https://www.rubydoc.info/gems/curly_bracket_parser">https://www.rubydoc.info/gems/curly_bracket_parser</a> <a name="contributing"></a> ## 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.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curly_bracket_parser-0.0.1 | README.md |