Sha256: 88b3e265ed3beddf239d0f0ddf6b3a1f2619d8b17cdc37557932d8942eb51976

Contents?: true

Size: 1.25 KB

Versions: 33

Compression:

Stored size: 1.25 KB

Contents

Fundamental tags that can be considered part of the DRYML core language.

# DRYML

DRYML is the Don't Repeat Yourself Markup Language.  It uses an
XML-like syntax and is best at creating XHTML documents.  It could be
used to create other forms of plain-text documents, but the syntax is
not optimized for that and you may end up with extra carriage returns.
(Which would be a bug, so please send test cases).

DRYML was created for the Hobo project, but this is an extraction from
that project and can be used separately.

# How to use with Rails 3 but without Hobo

- Declare the Dryml gem in your `Gemfile` 
    
    gem 'dryml'

- Then update your bundle

    $ bundle install

- Create an `application.dryml`

    $ mkdir app/views/taglibs
    $ touch app/views/taglibs/application.dryml

Now you can use templates that end in ".dryml" or ".html.dryml".  Controller 
layouts will still be rendered and will enclose your templates, but you can 
disable them if you wish in your ApplicationController:

    class ApplicationController < ActionController::Base
      layout nil
    end

# How to use outside of Rails

    Dryml.render("<html><%= this %></html>", {:this => something})

See the [rdoc](http://fixme/doc/Dryml.html#render-instance_method) for
more information.

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
dryml-2.2.6 README
dryml-2.2.5 README
dryml-2.2.4 README
dryml-2.2.3 README
dryml-2.2.2 README
dryml-2.2.1 README
dryml-2.2.0 README
dryml-2.1.2 README
dryml-2.1.1 README
dryml-2.1.0 README
dryml-2.1.0.pre4 README
dryml-2.1.0.pre3 README
dryml-2.1.0.pre2 README
dryml-2.1.0.pre1 README
dryml-2.0.1 README
dryml-2.0.0 README
dryml-2.0.0.pre10 README
dryml-2.0.0.pre9 README
dryml-2.0.0.pre8 README
dryml-2.0.0.pre7 README