#output_buffer ⇒ Object
readonly Returns the value of attribute output_buffer. #template ⇒ Object
readonly Returns the value of attribute template. #capture_from_template(*args, &block) ⇒ Object
Captures the html from a block of template code for this handler. #concat_to_template(text = "", context = nil) ⇒ Object
Outputs the given text to the template. #engine_matches?(block) ⇒ Boolean
Returns true if the block given is of the handler's template type; false otherwise. #initialize(template) ⇒ AbstractHandler
constructor A new instance of AbstractHandler. Returns a new instance of AbstractHandler
Returns the value of attribute output_buffer
Returns the value of attribute template
Captures the html from a block of template code for this handler.
This method is called to capture content of a block-loving helpers in templates. Haml has a special method to do this, for Erb and Slim we save original buffer, call the block and then restore the buffer.
Outputs the given text to the template.
This method is called when template uses block-aware helpers. For Slim and Haml such helpers just return output to use with `=`. For Erb this method is implemented in ErbHandler by concatenating given text to output buffer.
Returns true if the block given is of the handler's template type; false otherwise.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Helpers/OutputHelpers/AbstractHandler