<commit_before>= Rind

Rind is a templating engine that turns HTML (and XML) into node trees
and allows you to create custom tags or reuse someone else's genius.
Rind gives web devs tags to work with and provides the same thing to
app devs as an object. This project is just getting started so watch
out for sharp corners and unfinished rooms. Enough of that, let's talk
about what's done.

== Come say "Hello".

  # example.rb
  require 'rind'

  # Create a new document and load your template.
  doc = Rind::Document.new('index.html')

  # Xpath search for the the title and add some text.
  doc.sf('/html/head/title').children.push('Hello World')

  # Send it out the door.
  puts doc.render!

== Create your own!

One of the great things about Rind is that you can create your own HTML
elements and bundle them in modules. Imagine making a module that performs
a variety of useful functions on images. For example, it could provide
a gallery view that automatically generates thumbnails and paginates. Clicked
pics could provide full sized versions of themselves in a lightbox.

Create your custom module.

  # images.rb
  require 'rind'

  module Images
    class Gallery < Rind::Element
      attr_accessor :path_to_images

      # gallery magic here
      ...<commit_msg>adding gem installation instructions and correcting the hello world example<commit_after>= Rind

Rind is a templating engine that turns HTML (and XML) into node trees
and allows you to create custom tags or reuse someone else's genius.
Rind gives web devs tags to work with and provides the same thing to
app devs as an object. This project is just getting started so watch
out for sharp corners and unfinished rooms. Enough of that, let's talk
about what's done.

== Installation
  gem install rind

== Come say "Hello".

  # example.rb
  require 'rubygems'
  require 'rind'

  # Create a new document and load your template.
  doc = Rind::Document.new('index.html')

  # Xpath search for the the title and add some text.
  doc.sf('/html/head/title').children.push('Hello World')

  # Send it out the door.
  puts doc.render!

== Create your own!

One of the great things about Rind is that you can create your own HTML
elements and bundle them in modules. Imagine making a module that performs
a variety of useful functions on images. For example, it could provide
a gallery view that automatically generates thumbnails and paginates. Clicked
pics could provide full sized versions of themselves in a lightbox.

Create your custom module.

  # images.rb
  require 'rind'

  module Images
    class Gallery < Rind::Element
      attr_accessor :path_to_images

      # gallery magic here
      ...
{'fraction_non_alphanumeric': 0.05757009345794393, 'fraction_numerical': 0.0, 'mean_word_length': 3.6458333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2296403', 'n_tokens_mistral': 731, 'n_tokens_neox': 706, 'n_words': 383}