Class: Pekky::Format::Erb

Inherits:
Transformer show all
Defined in:
lib/pekky/format.rb

Overview

Ahhh, the venerable ERB templates.

Class Method Summary collapse

Methods inherited from Transformer

_filter, _format, name, singleton_method_added

Class Method Details

.format(text) ⇒ Object



198
199
200
# File 'lib/pekky/format.rb', line 198

def self.format(text)
  Tilt::ERBTemplate.new {text}.render
end