#Functional test - serve html/xml/xsl files from a git repo using http
- ISSUE: URLs used to acces files are not hierarchical - so releative links cannot be resolved
v0.5.0
-
DOES have hierarchical URLS - relative links are resolved
-
ISSUE- implementation serves raw files with http header content-type:text/plain
-
see patch
-
WORKS for XML+XSL
- XHTML (which is XML)
-
limitation : ALL files are handled as xml => html files (non-xhtml) are displayed as xml tree (no stylesheed) => all non-xml text files result in errors (invalid xml)
-
ALL RAW files shall be
- served with Content-type:text/xml
- in browser - rendered as XML
- XSL transform to x/html supported
- static xhtml supported
####Demo:
See request.
Request on gitlist support list to impelment proper content-type handling, esp. for xml files.
- VAR1 - hard-code xml extension -> text/xml
- VAR2 - use design from gitweb
- uses system-wide mime type - extension mapping