Public Member Functions | |
UseDefTag (const string &name) | |
virtual void | doStartTag (const attribs_t &attribs) |
virtual void | doEndTag () |
virtual void | initChildBuffers () |
Private Attributes | |
bool | with_servlet |
Definition at line 115 of file MacroTags.cpp.
csp::tags::UseDefTag::UseDefTag | ( | const string & | name | ) | [inline] |
Definition at line 120 of file MacroTags.cpp.
void csp::tags::UseDefTag::doEndTag | ( | ) | [virtual] |
Called when closing tag is encountered
Reimplemented from csp::tags::DefineTag.
Definition at line 141 of file MacroTags.cpp.
References servlet::taglib::Generator::body, csp::tags::DefineTag::m_defines, and with_servlet.
virtual void csp::tags::UseDefTag::doStartTag | ( | const attribs_t & | attribs | ) | [virtual] |
doStartTag is called when opening tag is encountered
attribs | key-value map of the tag attributes Override this function in your tag handler to generate pre-amble code for your tag |
Reimplemented from csp::tags::DefineTag.
void csp::tags::UseDefTag::initChildBuffers | ( | ) | [virtual] |
Sets up child buffers (buffers where contents _inside_ this tag is sent By default it's same as its own buffers (set by setBuffers) If this function is overridden and different set of buffers is generated, it's tag writer's responsibility to ensure that output is actually sent to parent's buffers
Reimplemented from csp::tags::DefineTag.
Definition at line 128 of file MacroTags.cpp.
References csp::tags::DefineTag::func_body, servlet::taglib::Generator::m_child_body, servlet::taglib::Generator::m_child_header, and servlet::taglib::Generator::m_child_member.
bool csp::tags::UseDefTag::with_servlet [private] |
Reimplemented from csp::tags::DefineTag.
Definition at line 118 of file MacroTags.cpp.
Referenced by doEndTag().