There are 4 methods that return information about the current tag your handler is working on.
$self->tagname(); #The name of the template tag
$self->block(); #The contents of the template tag
$self->type(); #The type of the template tag
$self->attributes() #A hash of attribute name,value pairs
#for the template tag