<commit_before>h1. ViewModels

A view model/representer solution for Padrino and Rails.

h2. Features

* Polymorph view model objects that correspond to model objects.
* View model specific templates.
* Hierarchical Template Rendering: Allows generalized templates for a class tree of view models.
* Helper methods directly on the view models.
* No view related code in the models.
* A clean API for use in Padrino/Rails.
* 100% rcov coverage, nice metrics, gallons of blood and sweat by excellent contributors.

h2. Installation

h3. Padrino (via Gem)

@gem install view_models@

and then adding the line

@gem 'view_models'@

in your Gemfile, followed by your app file(s):

<pre><code>require 'view_models'
...
class MyApplication < Padrino::Application
  register ViewModels::Helpers<commit_msg>+ README adapted to new style Padrino registering<commit_after>h1. ViewModels

A view model/representer solution for Padrino and Rails.

h2. Features

* Polymorph view model objects that correspond to model objects.
* View model specific templates.
* Hierarchical Template Rendering: Allows generalized templates for a class tree of view models.
* Helper methods directly on the view models.
* No view related code in the models.
* A clean API for use in Padrino/Rails.
* 100% rcov coverage, nice metrics, gallons of blood and sweat by excellent contributors.

h2. Installation

h3. Padrino (via Gem)

@gem install view_models@

and then adding the line

@gem 'view_models'@

in your Gemfile, followed by your app file(s):

<pre><code>require 'view_models'
...
class MyApplication < Padrino::Application
  register ViewModels
{'fraction_non_alphanumeric': 0.06592729513247074, 'fraction_numerical': 0.00862600123228589, 'mean_word_length': 4.638888888888889, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '2678719', 'n_tokens_mistral': 478, 'n_tokens_neox': 461, 'n_words': 212}