Sha256: 8ce5d366504ded525ab5dc607b118766e0247f47f2b63207fa4beec57e8e7d60

Contents?: true

Size: 1.05 KB

Versions: 31

Compression:

Stored size: 1.05 KB

Contents

# 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 but without Hobo

- install both HoboSupport and Dryml as a plugin or gem

- create an `application.dryml`

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

- create `config/initializers/dryml.rb`

    require 'dryml'
    require 'dryml/template'
    require 'dryml/dryml_generator'
    Dryml.enable

Now you can use templates that end in ".dryml".  Such templates will
ignore layouts.

# 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

31 entries across 31 versions & 1 rubygems

Version Path
dryml-1.1.0 README
dryml-1.3.0 README
dryml-1.3.0.RC4 README
dryml-1.3.0.RC3 README
dryml-1.3.0.RC2 README
dryml-1.3.0.RC1 README
dryml-1.3.0.RC README
dryml-1.3.0.pre31 README
dryml-1.3.0.pre29 README
dryml-1.3.0.pre28 README
dryml-1.1.0.pre4 README
dryml-1.3.0.pre27 README
dryml-1.3.0.pre26 README
dryml-1.1.0.pre3 README
dryml-1.3.0.pre25 README
dryml-1.3.0.pre24 README
dryml-1.3.0.pre23 README
dryml-1.3.0.pre22 README
dryml-1.3.0.pre21 README
dryml-1.3.0.pre20 README