PageRenderTime 44ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/test/http/web/relative-path.t2t

http://txt2tags.googlecode.com/
Unknown | 101 lines | 89 code | 12 blank | 0 comment | 0 complexity | 6a51612354430bff1501ae170b9d0f55 MD5 | raw file
  1
  2% A nice filter to remove version information from footer
  3%!postproc(html): '(generated by txt2tags) [0-9.]+'  '\1'
  4
  5% A nice filter to remove absolute path differences
  6%!postproc(html): '(^<!-- cmdline: txt2tags .* -i ).*?(/test/path/relative-path.t2t)'  '\1/path/to\2'
  7
  8% Styles
  9%!style: ../../upup.css
 10%!style: ../up.css
 11%!style: current.css
 12%!style: folder/sub.css
 13%!style: folder/subfolder/subsub.css
 14%!style: folder/subfolder/../sub.css
 15%!style: folder/subfolder/../../current.css
 16%!style: folder/subfolder/../../../up.css
 17%!style: folder/subfolder/../../../../upup.css
 18%!style: /absolute.css
 19%!style: http://txt2tags.org/site.css
 20%!style: https://txt2tags.org/site.css
 21
 22% Styles in %!options
 23%!options: --style ../../upup.css
 24%!options: --style ../up.css
 25%!options: --style current.css
 26%!options: --style folder/sub.css
 27%!options: --style folder/subfolder/subsub.css
 28%!options: --style folder/subfolder/../sub.css
 29%!options: --style folder/subfolder/../../current.css
 30%!options: --style folder/subfolder/../../../up.css
 31%!options: --style folder/subfolder/../../../../upup.css
 32%!options: --style /absolute.css
 33%!options: --style http://txt2tags.org/site.css
 34%!options: --style https://txt2tags.org/site.css
 35
 36% Images
 37[../../upup.png]
 38[../up.png]
 39[current.png]
 40[folder/sub.png]
 41[folder/subfolder/subsub.png]
 42[folder/subfolder/../sub.png]
 43[folder/subfolder/../../current.png]
 44[folder/subfolder/../../../up.png]
 45[folder/subfolder/../../../../upup.png]
 46
 47% Images as local link labels
 48[[../../upup.png] foo.html]
 49[[../up.png] foo.html]
 50[[current.png] foo.html]
 51[[folder/sub.png] foo.html]
 52[[folder/subfolder/subsub.png] foo.html]
 53[[folder/subfolder/../sub.png] foo.html]
 54[[folder/subfolder/../../current.png] foo.html]
 55[[folder/subfolder/../../../up.png] foo.html]
 56[[folder/subfolder/../../../../upup.png] foo.html]
 57
 58% Images as anchor labels
 59[[../../upup.png] #foo]
 60[[../up.png] #foo]
 61[[current.png] #foo]
 62[[folder/sub.png] #foo]
 63[[folder/subfolder/subsub.png] #foo]
 64[[folder/subfolder/../sub.png] #foo]
 65[[folder/subfolder/../../current.png] #foo]
 66[[folder/subfolder/../../../up.png] #foo]
 67[[folder/subfolder/../../../../upup.png] #foo]
 68
 69% Images as internet link labels
 70[[../../upup.png] http://www.foo.com]
 71[[../up.png] http://www.foo.com]
 72[[current.png] http://www.foo.com]
 73[[folder/sub.png] http://www.foo.com]
 74[[folder/subfolder/subsub.png] http://www.foo.com]
 75[[folder/subfolder/../sub.png] http://www.foo.com]
 76[[folder/subfolder/../../current.png] http://www.foo.com]
 77[[folder/subfolder/../../../up.png] http://www.foo.com]
 78[[folder/subfolder/../../../../upup.png] http://www.foo.com]
 79
 80% Images with absolute paths must be untouched
 81[/foo/bar.png]
 82[[/foo/bar.png] foo.html]
 83[[/foo/bar.png] #foo]
 84[[/foo/bar.png] http://www.foo.com]
 85
 86% Local named links
 87[Foo ../../upup.html]
 88[Foo ../up.html]
 89[Foo current.html]
 90[Foo folder/sub.html]
 91[Foo folder/subfolder/subsub.html]
 92[Foo folder/subfolder/../sub.html]
 93[Foo folder/subfolder/../../current.html]
 94[Foo folder/subfolder/../../../up.html]
 95[Foo folder/subfolder/../../../../upup.html]
 96
 97% Anchors (no changes)
 98[Foo #foo]
 99
100% Internet named links (no changes)
101[Foo http://foo.com]