Class: Malt::Format::Radius

Inherits:
Abstract show all
Defined in:
lib/malt/formats/radius.rb

Overview

Radius Template

http://github.com/jlong/radius/

Instance Attribute Summary

Attributes inherited from Abstract

#options

Instance Method Summary collapse

Methods inherited from Abstract

#default, #engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!

Instance Method Details

#html(*data, &content) ⇒ Object


26
27
28
29
# File 'lib/malt/formats/radius.rb', line 26

def html(*data, &content)
  render_into(:html, *data, &content)
  #render_engine.render(:text=>text, :file=>file, :data=>data, &yld)
end

#radiusObject


16
17
18
# File 'lib/malt/formats/radius.rb', line 16

def radius(*)
  text
end

#to_html(*data, &content) ⇒ Object


32
33
34
35
36
# File 'lib/malt/formats/radius.rb', line 32

def to_html(*data, &content)
  text = html(*data, &content)
  opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
  HTML.new(opts)
end

#to_radiusObject


21
22
23
# File 'lib/malt/formats/radius.rb', line 21

def to_radius(*)
  self
end