In Files
Parent
Methods
Information
Class Index
![show/hide quicksearch [+]](../../assets/icon/find.png)
- Malt
- Malt::Engine
- Malt::Engine::Abstract
- Malt::Engine::BlueCloth
- Malt::Engine::Builder
- Malt::Engine::Erb
- Malt::Engine::Erector
- Malt::Engine::Erubis
- Malt::Engine::Haml
- Malt::Engine::Kramdown
- Malt::Engine::Less
- Malt::Engine::Liquid
- Malt::Engine::Markaby
- Malt::Engine::Mustache
- Malt::Engine::RDiscount
- Malt::Engine::RDoc
- Malt::Engine::Radius
- Malt::Engine::Radius::context;
- Malt::Engine::RagTag
- Malt::Engine::RedCloth
- Malt::Engine::Ruby
- Malt::Engine::Sass
- Malt::Engine::Tenjin
- Malt::Format
- Malt::Format::Abstract
- Malt::Format::AbstractTemplate
- Malt::Format::Builder
- Malt::Format::CSS
- Malt::Format::Erb
- Malt::Format::Erector
- Malt::Format::HTML
- Malt::Format::Haml
- Malt::Format::LESS
- Malt::Format::Latex
- Malt::Format::Liquid
- Malt::Format::Markaby
- Malt::Format::Markdown
- Malt::Format::Mustache
- Malt::Format::PDF
- Malt::Format::RBHTML
- Malt::Format::RDoc
- Malt::Format::RHTML
- Malt::Format::Radius
- Malt::Format::RagTag
- Malt::Format::Ruby
- Malt::Format::SCSS
- Malt::Format::Sass
- Malt::Format::Tenjin
- Malt::Format::Text
- Malt::Format::Textile
- Malt::Format::UnsupportedConversion
- Malt::Format::XML
- Malt::Format::YAML
- Malt::Kernel
- Malt::Machine
- Malt::Markup
- Malt::NoEngineError
- Malt::Template
- Hash
- OpenStruct
Public Instance Methods
html(data=nil, &yld)
click to toggle source
# File lib/malt/formats/rbhtml.rb, line 31 31: def html(data=nil, &yld) 32: render_engine.render(:text=>text, :file=>file, :data=>data, :format=>:html, &yld) 33: end
to_html(data=nil, &yld)
click to toggle source
# File lib/malt/formats/rbhtml.rb, line 36 36: def to_html(data=nil, &yld) 37: text = html(data, &yld) 38: opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html) 39: HTML.new(opts) 40: end
to_rb(*)
click to toggle source
RHTML templates can be “pre-compiled” into Ruby templates.
# File lib/malt/formats/rbhtml.rb, line 19 19: def to_rb(*) 20: text = rb 21: Ruby.new(:text=>text, :file=>refile(:rb), :type=>:rb) 22: end
Also aliased as: to_ruby, precompile
Disabled; run with --debug to generate this.