Changes between Version 1 and Version 2 of ru/TemplateEngine


Ignore:
Timestamp:
Oct 26, 2013, 3:46:00 PM (8 years ago)
Author:
vadim.godunko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ru/TemplateEngine

    v1 v2  
    2020
    2121{{{#!xml
    22 <html xmlns:mtl="http://matreshka.forge.ada-ru.org/template" ...>
     22<html xmlns="http://www.w3.org/1999/xhtml"
     23      xmlns:mtl="http://matreshka.forge.ada-ru.org/template">
    2324...
    2425}}}
     
    3031}}}
    3132
     33=== Условие mtl:if ===
     34
     35{{{#!xml
     36<div mtl:if="${boolean expression}"/>
     37}}}
     38
     39{{{#!xml
     40<mtl:if condition="${boolean expression}">
     41  ...
     42</mtl:if>
     43}}}
     44
     45=== Выбор mtl:case ===
     46
     47{{{#!xml
     48<div mtl:case="${expression}">
     49  <span mtl:when="literal">...</span>
     50  <span mtl:when="literal">...</span>
     51  <span mtl:others="">...</span>
     52</div>
     53}}}
     54
     55{{{#!xml
     56<mtl:case expression="${expresion}">
     57  <mtl:when condition="literal">...</mtl:when>
     58  <mtl:when condition="literal">...</mtl:when>
     59  <mtl:others>...</mtl:others>
     60</mtl:case>
     61}}}
    3262
    3363== Синтаксис выражений ==