Mercurial > hg > nginx-site
view xsls/books.xsls @ 1187:d7d60966f6f8
Added indentation to directive/variables indexes.
While these files aren't designed to be read/edited by humans, indentation
makes things more convenient. E.g., terminal is no longer flooded by a very
long line with full list of directives if dirindex.xml is matched by grep.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 May 2014 18:36:52 +0400 |
parents | 81ad082bc837 |
children | ae713f8acaca |
line wrap: on
line source
<!-- Copyright (C) Igor Sysoev Copyright (C) Nginx, Inc. --> X:stylesheet { X:template = "book" { <table><tr> <td bgcolor="#EEEEEE"> <a href="{@link}"> <img src="{@cover}" alt="" style="padding: 2pt;" border="0"/> </a> </td> <td> X:text {title: } <a href="{@link}">!{@title}</a> <br/> X:text {author: } X:if "@site" { <a href="{@site}">!{@author}</a> } else { !{@author} } <br/> X:if "@translator" { X:text {translator: } !{@translator} <br/> } X:if "@publisher" { X:text {publisher: } !{@publisher} <br/> } X:text {language: } !{@lang} </td> </tr></table> } }