Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
693aaef4a8 Merged WSGI fixes from http://hg.omnifarious.org/~hopper/webmerc/ 2006-06-30 21:36:45 +02:00
Benoit Boissinot
613e2e8d77 make changeset outputted by the raw template to be closer to 'hg export' 2006-06-30 10:16:38 +02:00
Eric Hopper
f4e85c5507 Fix raw files in the web UI. 2006-06-29 18:34:26 -07:00
Alexis S. L. Carvalho
23a2185010 Fix filerevision-raw.tmpl
Two bugs:
- conteXt-type instead of conteNt-type
- trailing newline

The easiest way to fix the second one (and keep it fixed) is to put
everything inline in map-raw.
2006-04-19 11:39:34 -07:00
Vadim Gelfer
e8d01e14ea use safer string parser for template engine. 2006-02-27 09:35:43 -08:00
Thomas Arendsen Hein
8dc011fb10 Added raw view for file annotate in hgweb. 2006-02-03 12:50:02 +01:00
Benoit Boissinot
481a5f04df hgweb/templates: remove unused vars from map-raw
annotateline contains html and it is unused
filenodelink is unused but should be defined
2006-02-03 11:54:16 +01:00
Benoit Boissinot
88cc0dc818 hgweb/templates: no need to escape the '<' '>' and '&' in raw templates 2006-02-03 11:54:12 +01:00
Peter van Dijk
45d8535751 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames 2006-01-29 00:18:52 +01:00
Muli Ben-Yehuda
5ff82e08cd - duplicate the parent link logic to show child links
- don't show trivial parent or children links
2005-12-29 14:51:29 -06:00
mpm@selenic.com
c6171242df hgweb: add template filters, template style maps, and raw pages
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgweb: add template filters, template style maps, and raw pages

Template filters:

in templates, you can now specify a chain of filters like

#desc|firstline|escape#
#desc|escape|addbreaks#
#date|age#

to specify how you'd like raw text (or whatever) to be transformed.

Template style maps:

add ;style=foo to a URL and we'll use templates/map-foo if it exists.

Raw output:

Together, these two features make it east to implement raw
downloadable files and patches. Simply link to the same page with
style=raw and present the output as unfiltered text/plain with that
template.

manifest hash: 5954a648b3d6b4e6dc2dcd1975f96b4b0178da2a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCnUMyywK+sNU5EO8RAkKjAJ9h9JElSCbWBPUnL+koCSDxgo38AwCgrccM
0qwyKdh/fUNglICxSh3HBNA=
=Svlo
-----END PGP SIGNATURE-----
2005-05-31 21:10:10 -08:00