Mercurial > hg > nginx-site
changeset 591:b57657247299
Reduced the number of templates.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 19 Jul 2012 04:57:01 +0000 |
parents | 05761a8e38f6 |
children | d40371689c1c |
files | xsls/article.xsls |
diffstat | 1 files changed, 1 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/xsls/article.xsls Thu Jul 19 04:56:13 2012 +0000 +++ b/xsls/article.xsls Thu Jul 19 04:57:01 2012 +0000 @@ -34,24 +34,7 @@ X:template = "/article | /module" { <html> - <head> - - <title> !{@name} </title> - - !style (lang="@lang") - - !ga () - - </head> - - !body (lang="@lang") - - </html> -} - - -X:template = "/article[@lang='he'] | /module[@lang='he']" { - <html dir="rtl"> + X:if "@lang = 'he'" { X:attribute "dir" { X:text{rtl} } } <head>