Class: AxTags::AxContext
- Inherits:
-
Radius::Context
- Object
- Radius::Context
- AxTags::AxContext
- Defined in:
- lib/axtags/ax_context.rb
Instance Method Summary collapse
-
#tag_error(tag, error_text) ⇒ Object
A method in-reserve for generic error-reporting to the end-user:.
-
#tag_missing(tag, attr, &block) ⇒ Object
A catch-call for handling an unsupported tag included in a template:.
Instance Method Details
#tag_error(tag, error_text) ⇒ Object
A method in-reserve for generic error-reporting to the end-user:
19 20 21 |
# File 'lib/axtags/ax_context.rb', line 19 def tag_error(tag, error_text) %{<span class="error parse-error ui-state-error">Error in rendering tag \"#{tag}\"; #{error_text}</span>} end |
#tag_missing(tag, attr, &block) ⇒ Object
A catch-call for handling an unsupported tag included in a template:
14 15 16 |
# File 'lib/axtags/ax_context.rb', line 14 def tag_missing(tag, attr, &block) %{<span class="error parse-error ui-state-error">Tag "#{tag}" is unknown. Attributes provided: #{attr.inspect}</span>} end |