Socket
Book a DemoInstallSign in
Socket

dryml

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dryml

2.2.6
bundlerRubygems
Version published
Maintainers
1
Created
Source

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 for more information.

FAQs

Package last updated on 07 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.