====== WACT tag dictionary (including Limb3 specific tags) ====== //Most of the pages have usage examples. In some cases the whole group of tag has the only example, in such cases the page with usage example is marked with "See example here!""// You can also browse examples in SVN at : https://svn.limb-project.com/3.x/examples/wact/examples/. Or you can also download examples from http://projects.limb-project.com/ (see. WACT section) ===== WACT Core Tags ===== ^Tag^Description^ |Location: **limb/wact/src/tags/core/**|| |[[.Tags:CoreTags:coreBlockTag|]]|Allows to join a group of tags into single block and to show or to hide this block| |[[.Tags:CoreTags:coreCommentTag|]]|Allows to insert a comment into template that will not be rendered.| |[[.Tags:CoreTags:CoreDatasourceTag|]]|Provides a scope for template variables. In other words inserts a new data context (datasource) into template| |[[.Tags:CoreTags:CoreOptionalTag|]]|Outputs a portion of the template if named variable exists at runtime.| |[[.Tags:CoreTags:CoreDefaultTag|]]|Outputs a portion of the template if a given variable is not defined at runtime (partner of tag| |[[.Tags:CoreTags:CoreIfTag|]]|Outputs a portion of the template if a given variable expression is true.| |[[.Tags:CoreTags:CoreIncludeTag|]]|Outputs a portion of the template if a given variable.| |[[.Tags:CoreTags:CoreLiteralTag|]]|Prevent contents of tag from being parsed.| |[[.Tags:CoreTags:CorePlaceholderTag|core:placeholder>]]|Present a named location where content can be inserted. Partner of tag.| |[[.Tags:CoreTags:coreRepeatTag|]]|Allows to output a portion of the template several times.| |[[.Tags:CoreTags:coreRuntimeContentTag|]]|Provides a placeholder in the template at runtime where any text can be rendered. | |[[.Tags:CoreTags:CoreWrapTag|]]|Wraps a portion of the current template into some placeholder of the base (parent) template and thus compiles two (or more) templates into a single one.| |[[.Tags:CoreTags:CoreSetTag|]]|Sets the value of a variable (or several variables) in the current scope| ===== WACT List Tags (WACT tags to output lists and tables) ===== ^Tag^Description^ |Location: **limb/wact/src/tags/list/**||| |[[.tags:ListTags:ListListTag|]]|Defines a list boundaries. Holds iterator. **See example here!**| |[[.tags:ListTags:ListItemTag|]]|Used to contain the content for rendering list items (rows). Repeated for every item in iterator. **See example here!**| |{$:ListRowNumber}|Outputs number of the current row.| |{$:ListRowOdd}|Has true value if current row is odd. Used inside tag contents| |{$:ListRowEven}|Has true value if current row is even. Used inside tag contents| |{$:Parity}|Emits odd or even depending on row. Used inside tag contents| |[[.tags:ListTags:ListDefaultTag|]]|Define alternative output to be shown when enclosing list is empty| |[[.tags:ListTags:ListSeparatorTag|]]|Define output between list items| |[[.tags:ListTags:ListFillTag|]]|Used to generate valid markup in multicolumn lists| ===== WACT Form tags ===== ^Tag^Description^ |Location: **limb/wact/src/tags/form/**||| |[[.tags:FormTags:FormTag|
]]|Enhanced html tag.| |[[.tags:FormTags:FormErrorsTag|]]|Used in rendering form validation errors.| |[[.tags:FormTags:ControlTag|ControlTag]] (has no tag) | A base class for all form elements tags.| |[[.tags:FormTags:InputTag|]]|Enhanced html tag.| |[[.tags:FormTags:ButtonTag|