<commit_before># DynMeta

Automate the lookup of page meta information based on the current request context. Meta information such as page titles and descriptions can be stored in a translations file rather than floating around in controllers or views.

## Installation

Add dyn_meta to your Gemfile

 gem 'dyn_meta'

Install the gem

 bundle install

## Usage

Add DynMeta::Helper as a helper:

```ruby
# application_controller.rb
include DynMeta::Helper
helper :meta
```

Set up your translations as follows:

```yml
en:
  meta:
    <meta key pluralized>:
      <controller>:
        <action>:
          <id>: "Some meta value"
```

For example:
<commit_msg>remove the install instructions<commit_after># DynMeta

Automate the lookup of page meta information based on the current request context. Meta information such as page titles and descriptions can be stored in a translations file rather than floating around in controllers or views.

## Usage

Add DynMeta::Helper to your app:

```ruby
# application_controller.rb
helper DynMeta::Helper
```

Set up your translations as follows:

```yml
en:
  meta:
    <meta key pluralized>:
      <controller>:
        <action>:
          <id>: "Some meta value"
```

For example:

{'fraction_non_alphanumeric': 0.07748776508972267, 'fraction_numerical': 0.0, 'mean_word_length': 3.8884462151394423, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4240257', 'n_tokens_mistral': 350, 'n_tokens_neox': 321, 'n_words': 154}