README.md (798B)
1 # OpenRat CMS Views 2 3 All views are desribe within a XML file with the extension `.tpl.src.xml`. 4 5 These views are compiled to `.php` files. 6 7 All XML files are linked to the [XSD schema](../../../../../../template_engine/components/README.md), this makes the creation of template files more simple. 8 9 ## Finding the view 10 11 Every request has an 'action' and a 'subaction'. 12 13 The matching template is `html/views/<action>/<subaction>.src.xml` 14 15 ## Components 16 17 The following namespaces are available for the source xml files: 18 19 - `http://www.openrat.de/template` for special CMS components. 20 - `http://www.w3.org/1999/xhtml` for HTML5 components. 21 22 ## Variables 23 24 - `${variable.name}` outputs a data variable 25 - `#{messagekey}` outputs a i18n message 26 - `%{config/subconfig/value}` outputs a configuration value