Class: HtmlTemplate::Context

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/html/template.rb

Instance Method Summary collapse

Instance Method Details

#get_bindingObject

use a different name - why? why not?

e.g. to_h, to_hash, vars, locals, assigns, etc.


397
# File 'lib/html/template.rb', line 397

def get_binding() binding; end

#h(text) ⇒ Object

add builtin helpers / shortcuts



400
# File 'lib/html/template.rb', line 400

def h( text ) CGI.escapeHTML( text ); end