Skip to content
Myr

some more small release changes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk rename : docs/build/jinjabanner.png => docs/html/jinjabanner.png rename : docs/build/jinjalogo.png => docs/html/jinjalogo.png rename : docs/build/style.css => docs/html/style.css rename : docs/build/watermark.png => docs/html/watermark.png

authored by Armin Ronacher · committed by Armin Ronacher · parent 825e522 · Browse files · 13 files+201 added−201 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

13 files+201 added−201 removed

  • other:+201 added−201 removed

13 files+201 added−201 removed

deleted:docs/build/jinjabanner.pngbinary

A binary file, deleted.

deleted:docs/build/jinjalogo.pngbinary

A binary file, deleted.

deleted:docs/build/style.css-196 removed
1body {2 background-color: #333;3 margin: 0;4 padding: 0;5 font-family: 'Georgia', serif;6 font-size: 15px;7 color: #111;8}910#content {11 background-color: white;12 background-image: url(watermark.png);13 padding: 10px;14 margin: 25px;15 border: 4px solid #ddd;16}1718h1 {19 margin: 0;20 padding: 0;21 height: 80px;22 background-image: url(jinjabanner.png);23 background-repeat: no-repeat;24}2526h1 span {27 display: none;28}2930h2.subheading {31 margin: -55px 0 35px 200px;32 font-weight: normal;33 font-size: 30px;34 color: #444;35}3637h2.plain {38 margin: 0;39}4041#jinjalogo {42 background-image: url(jinjalogo.png);43 background-repeat: no-repeat;44 width: 400px;45 height: 160px;46}4748#contentwrapper {49 max-width: 700px;50 padding: 0 0 20px 18px;51}5253#contentwrapper h3,54#contentwrapper h3 a {55 color: #b41717;56 font-size: 26px;57 margin: 20px 0 0 -5px;58}5960#contentwrapper h4,61#contentwrapper h4 a {62 color: #b41717;63 font-size: 20px;64 margin: 20px 0 0 0;65}6667table.docutils {68 border-collapse: collapse;69 border: 2px solid #aaa;70 margin: 0.5em 1.5em 0.5em 1.5em;71}7273table.docutils td {74 padding: 2px;75 border: 1px solid #ddd;76}7778p, li, dd, dt, blockquote {79 color: #333;80}8182p {83 line-height: 150%;84 margin-bottom: 0;85 margin-top: 10px;86 text-align: justify;87}8889hr {90 border-top: 1px solid #ccc;91 border-bottom: 0;92 border-right: 0;93 border-left: 0;94 margin-bottom: 10px;95 margin-top: 20px;96}9798dl {99 margin-left: 10px;100}101102li, dt {103 margin-top: 5px;104}105106dt {107 font-weight: bold;108}109110th {111 text-align: left;112 padding: 3px;113 background-color: #f2f2f2;114}115116a {117 color: #b41717;118}119120a:hover {121 color: #444;122}123124pre {125 background-color: #f9f9f9;126 border-top: 1px solid #ccc;127 border-bottom: 1px solid #ccc;128 padding: 5px;129 font-size: 13px;130 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;131}132133tt {134 font-size: 13px;135 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;136 color: black;137 padding: 1px 2px 1px 2px;138 background-color: #f0f0f0;139}140141cite {142 /* abusing <cite>, it's generated by ReST for `x` */143 font-size: 13px;144 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;145 font-weight: bold;146 font-style: normal;147}148149div.admonition {150 margin: 10px 0 10px 0;151 padding: 10px;152 border: 1px solid #ccc;153 background-color: #f8f8f8;154}155156div.admonition p.admonition-title {157 margin: -3px 0 5px 0;158 font-weight: bold;159 color: #b41717;160 font-size: 16px;161}162163div.admonition p {164 margin: 0 0 0 40px;165}166167#toc {168 margin: 0 -10px 10px 15px;169 padding: 10px;170 width: 200px;171 float: right;172 background-color: #f8f8f8;173 border: 1px solid #ccc;174 border-right: none;175}176177#toc h2 {178 font-size: 20px;179 margin: 0 0 10px 0;180 padding: 0;181 color: #444;182}183184#toc ul {185 margin: 0 0 0 30px;186 padding: 0;187}188189#toc ul + h2 {190 margin-top: 10px;191}192193#toc ul li {194 padding: 0;195 margin: 2px 0 2px 0;196}
deleted:docs/build/watermark.pngbinary

A binary file, deleted.

added:docs/html/jinjabanner.pngbinary

A binary file, added.

added:docs/html/jinjalogo.pngbinary

A binary file, added.

added:docs/html/style.css+196 added
1body {2 background-color: #333;3 margin: 0;4 padding: 0;5 font-family: 'Georgia', serif;6 font-size: 15px;7 color: #111;8}910#content {11 background-color: white;12 background-image: url(watermark.png);13 padding: 10px;14 margin: 25px;15 border: 4px solid #ddd;16}1718h1 {19 margin: 0;20 padding: 0;21 height: 80px;22 background-image: url(jinjabanner.png);23 background-repeat: no-repeat;24}2526h1 span {27 display: none;28}2930h2.subheading {31 margin: -55px 0 35px 200px;32 font-weight: normal;33 font-size: 30px;34 color: #444;35}3637h2.plain {38 margin: 0;39}4041#jinjalogo {42 background-image: url(jinjalogo.png);43 background-repeat: no-repeat;44 width: 400px;45 height: 160px;46}4748#contentwrapper {49 max-width: 700px;50 padding: 0 0 20px 18px;51}5253#contentwrapper h3,54#contentwrapper h3 a {55 color: #b41717;56 font-size: 26px;57 margin: 20px 0 0 -5px;58}5960#contentwrapper h4,61#contentwrapper h4 a {62 color: #b41717;63 font-size: 20px;64 margin: 20px 0 0 0;65}6667table.docutils {68 border-collapse: collapse;69 border: 2px solid #aaa;70 margin: 0.5em 1.5em 0.5em 1.5em;71}7273table.docutils td {74 padding: 2px;75 border: 1px solid #ddd;76}7778p, li, dd, dt, blockquote {79 color: #333;80}8182p {83 line-height: 150%;84 margin-bottom: 0;85 margin-top: 10px;86 text-align: justify;87}8889hr {90 border-top: 1px solid #ccc;91 border-bottom: 0;92 border-right: 0;93 border-left: 0;94 margin-bottom: 10px;95 margin-top: 20px;96}9798dl {99 margin-left: 10px;100}101102li, dt {103 margin-top: 5px;104}105106dt {107 font-weight: bold;108}109110th {111 text-align: left;112 padding: 3px;113 background-color: #f2f2f2;114}115116a {117 color: #b41717;118}119120a:hover {121 color: #444;122}123124pre {125 background-color: #f9f9f9;126 border-top: 1px solid #ccc;127 border-bottom: 1px solid #ccc;128 padding: 5px;129 font-size: 13px;130 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;131}132133tt {134 font-size: 13px;135 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;136 color: black;137 padding: 1px 2px 1px 2px;138 background-color: #f0f0f0;139}140141cite {142 /* abusing <cite>, it's generated by ReST for `x` */143 font-size: 13px;144 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;145 font-weight: bold;146 font-style: normal;147}148149div.admonition {150 margin: 10px 0 10px 0;151 padding: 10px;152 border: 1px solid #ccc;153 background-color: #f8f8f8;154}155156div.admonition p.admonition-title {157 margin: -3px 0 5px 0;158 font-weight: bold;159 color: #b41717;160 font-size: 16px;161}162163div.admonition p {164 margin: 0 0 0 40px;165}166167#toc {168 margin: 0 -10px 10px 15px;169 padding: 10px;170 width: 200px;171 float: right;172 background-color: #f8f8f8;173 border: 1px solid #ccc;174 border-right: none;175}176177#toc h2 {178 font-size: 20px;179 margin: 0 0 10px 0;180 padding: 0;181 color: #444;182}183184#toc ul {185 margin: 0 0 0 30px;186 padding: 0;187}188189#toc ul + h2 {190 margin-top: 10px;191}192193#toc ul li {194 padding: 0;195 margin: 2px 0 2px 0;196}
added:docs/html/watermark.pngbinary

A binary file, added.

modified:docs/src/designerdoc.txt+1 added-1 removed
279 unmodified lines
280With Jinja 1.2 onwards it's possible to replace basic if/else blocks with the281inline `if` / `else` expression. The following two examples evaluate to the282same:283284.. source:: jinja284.. sourcecode:: jinja285286 {{ "something" if expr else "otherthing" }}287288 {% if expr %}something{% else %}otherthing{% endif %}
277 unmodified lines
modified:docs/src/frameworks.txt+1 added-1 removed
221 unmodified lines
222 You can use it in the template like this then::223224 {{ render_author_details('John Doe') }}225226``clean_inclusion (func, template[, name[, run_processors]]) ``226``clean_inclusion (func, template[, name[, run_processors]])``227 Works like `context_inclusion` but doesn't use the calles228 context but an empty context. If `run_processors` is `True`229 it will lookup the context for a `request` object and pass230 it to the render function to apply context processors.
7 unmodified lines
modified:docs/generate.py+1 added-1 removed
315 unmodified lines
316 finally:317 f.close()318319320def main(dst='build/', preproc=False, *sources):320def main(dst='html/', preproc=False, *sources):321 run(os.path.realpath(dst), str(preproc).lower() == 'true', sources)322323324if __name__ == '__main__':
1 unmodified line
modified:MANIFEST.in+1 added-1 removed
1include Makefile CHANGES LICENSE AUTHORS TODO ez_setup.py2include docs/build/*.html2include docs/html/*3include docs/src/*.txt4recursive-include tests *
modified:setup.py+1 added-1 removed
77 unmodified lines
78 ],79 keywords=['python.templating.engines'],80 packages=['jinja', 'jinja.translators'],81 data_files=[82 ('docs', list(list_files('docs/build'))),82 ('docs/html', list(list_files('docs/html'))),83 ('docs/txt', list(list_files('docs/src')))84 ],85 entry_points='''86 [python.templating.engines]
21 unmodified lines