In Files
Parent
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
Erubis
Erubis template implementation.
http://www.kuwata-lab.com/erubis/
Erubis is essentially compatibel with ERB, but it is faster.
Public Instance Methods
compile(params)
click to toggle source
Compile template into Ruby source code.
# File lib/malt/engines/erubis.rb, line 24 24: def compile(params) 25: text = params[:text] 26: file = params[:file] 27: intermediate(text, file).src 28: end
intermediate(params)
click to toggle source
# File lib/malt/engines/erubis.rb, line 31 31: def intermediate(params) 32: text = params[:text] 33: file = params[:file] 34: 35: opts = {} 36: 37: if params[:escape_html] || settings[:escape_html] 38: ::Erubis::EscapedEruby.new(text, settings) 39: else 40: ::Erubis::Eruby.new(text, settings) 41: end 42: end
render(params, &yld)
click to toggle source
Render template.
# File lib/malt/engines/erubis.rb, line 16 16: def render(params, &yld) 17: text = params[:text] 18: data = params[:data] 19: data = make_binding(data, &yld) 20: intermediate(params).result(data) 21: end
Disabled; run with --debug to generate this.