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