[limb-issues] Resolved: (WACT-4) Move required_attributes, enclosing_tag and allow_selfnesting into tags annotation text
Sergey Yudin (JIRA)
jira at limb-project.com
Wed Oct 18 15:38:44 MSD 2006
[ http://jira.limb-project.com/browse/WACT-4?page=all ]
Sergey Yudin resolved WACT-4.
-----------------------------
Resolution: Fixed
> Move required_attributes, enclosing_tag and allow_selfnesting into tags annotation text
> ---------------------------------------------------------------------------------------
>
> Key: WACT-4
> URL: http://jira.limb-project.com/browse/WACT-4
> Project: WACT
> Issue Type: Improvement
> Reporter: Sergey Yudin
> Assigned To: Sergey Yudin
> Priority: Minor
>
> After some modifications in CompilerTag you can describe required tag attributes using protected $required_attributes array property of the tag, e.g.:
> protected $required_attributes = array('file');
> This check is very primitive, it checks if the tag has such attribute and attribute has a constant value. It's ok for most of the cases. If you require attribute to have a particular value (e.g. you need to generate different code if attribute has a constant value or not) you should override preParse() method of the tag.
> I think it would be great to improve tag dictionary functionality and to allow describe required attributes in tag annotation zone.
> I also think we should implement both @req_attribute as well as @req_const_attribute to allow attribute existing check and attribute existing with constant value check.
> Moveover it would be nice to implement @allow_self_nesting flag and @parent_tag annotation fields as well. This will allow us to remove most of CheckNestingLevel() methods from tags.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the limb-issues
mailing list