##// END OF EJS Templates
templater: return data in increasing chunk sizes...
templater: return data in increasing chunk sizes Currently hgweb is not streaming its output -- it accumulates the entire response before sending it. This patch restores streaming behaviour. To avoid having to synchronously write many tiny fragments, this patch also adds buffering to the template generator. Local testing of a fetch of a 100,000 line file with wget produces a slight slowdown overall (up from 6.5 seconds to 7.2 seconds), but instead of waiting 6 seconds for headers to arrive, output begins immediately.

File last commit:

r7331:650e9d69 default
r7396:526c40a7 default
Show More
manifest.tmpl
53 lines | 1.5 KiB | application/x-cheetah | CheetahLexer
Matt Mackall
templates: add coal web theme
r6436 {header}
<title>{repo|escape}: {node|short} {path|escape}</title>
</head>
<body>
Matt Mackall
coal: more tweaking...
r6453 <div class="container">
Matt Mackall
templates: add coal web theme
r6436 <div class="menu">
<div class="logo">
<a href="http://www.selenic.com/mercurial/">
<img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>
<ul>
Brendan Cully
coal: include current node in log, graph menu links
r6775 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</a></li>
<li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
Matt Mackall
templates: add coal web theme
r6436 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
</ul>
<ul>
<li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
<li class="active">browse</li>
</ul>
<ul>
{archives%archiveentry}
</ul>
</div>
<div class="main">
Thomas Arendsen Hein
Keep sessionvars with repository links added in a0843c82d1a2...
r7331 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
Matt Mackall
coal: more tweaks...
r6452 <h3>directory {path|escape} @ {rev}:{node|short} {tags%changelogtag}</h3>
Matt Mackall
templates: add coal web theme
r6436
<form class="search" action="{url}log">
{sessionvars%hiddenformentry}
<p><input name="rev" id="search1" type="text" size="30"></p>
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327 <span>find changesets by author, revision,
Benoit Allard
coal/paper: show a search tip when hovering over search box...
r7299 files, or words in the commit message</span>
Matt Mackall
templates: add coal web theme
r6436 </form>
<table class="bigtable">
<tr>
Matt Mackall
coal: even more tweaks...
r6454 <th class="name">name</th>
<th class="size">size</th>
Matt Mackall
templates: add coal web theme
r6436 <th class="permissions">permissions</th>
</tr>
Matt Mackall
coal: even more tweaks...
r6454 <tr class="fileline parity{upparity}">
<td class="name"><a href="{url}file/{node|short}{up|urlescape}{sessionvars%urlparameter}">[up]</a></td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
Matt Mackall
templates: add coal web theme
r6436 </tr>
{dentries%direntry}
{fentries%fileentry}
</table>
Matt Mackall
coal: more tweaking...
r6453 </div>
</div>
Matt Mackall
templates: add coal web theme
r6436 {footer}