Class: HtmlTemplate::Context
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- HtmlTemplate::Context
- Defined in:
- lib/html/template.rb
Instance Method Summary collapse
-
#get_binding ⇒ Object
use a different name - why? why not? e.g.
-
#h(text) ⇒ Object
add builtin helpers / shortcuts.
Instance Method Details
#get_binding ⇒ Object
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 |