GovTags is a templating syntax that allows you to quickly and easily enable dynamic functionality within Governor through your html.
GovTags can be broken down into four major catagories layout tags, element tags, module tags, and Dynamic Tags. Within each set, the GovTag's template can be modified using attributes and expressions.
Layout tags are used to define the structure and organization of a website. They allow static html pages to become dynamic websites. Layout tags are used to separate and how it should be organized for display, editing and managing. Tags that fall under this category include the gv-content This allows you to define where dynamic page content appears in your master template. gv-includes This tag allows templates to be separated into smaller parts for reuse and flexibility. gv-extends This tag allows a page to define which master.html it uses when being displayed.
Core tags are used to quickly and easily make basic website content CMS driven and dynamic. These tags include the gv-text, gv-textarea, gv-link, gv-img, and gv-wysi tags. Applying these tags to an html element enables corresponding controls to edit and modify content with in the Governor app. These tags can be modified using attributes and expressions.
Module tags are bundled with Governor modules and allow for control and display of module data. A module is an extended piece of functionality that can be added to a Governor site. Some examples of modules built into Governor are the Governor Media Module, for managing photos. and the Governor Blog module.
Dynamic tags are used to help create more flexible and dynamic templates by giving the user finer control over blocks of code with in the app. An example of dynamic tags is the gv-repeat tag. The gv-repeat allows the end user to create and manage chunks of codes adding, removing, and editing dynamically from the Governor UI.
Attributes are used to modify, limit, or describe a tag. They use the -dash syntax and can be placed inside the opening of an html element. The most common attribute -label allows developers to describe the intended purpose of a tag. Other examples of attributes are -min, -max, -char, and -block.
Expressions are used to modify a tags default template allowing for complete control and flexibility when tagging a theme. Expressions use the @syntax and can be used anywhere inside the opening and closing tags. They are used to display values of properties in a tag allowing a custom template to be rendered when displaying the tag.