Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 template = head-test | 1 template = head-test |
2 | |
3 <!DOCTYPE html> | |
4 <html> | |
5 <head> | |
6 {{ head|safe }} | |
Vasily Kuznetsov
2018/11/21 23:30:47
This line probably shouldn't be here. It confused
rhowell
2018/12/19 02:33:30
Done.
| |
7 <title>Page Title</title> | |
8 <link rel="stylesheet" href="/dist/css/main.min.css"> | |
9 <base href="https://www.example.com/news/index.html"> | |
10 <script src="/scripts/myscript.js"></script> | |
11 </head> | |
12 | |
13 <body> | 2 <body> |
14 Simple TS with default: {{ simple[desc] Translate }}. | 3 Simple TS with default: {{ simple[desc] Translate }}. |
15 Same TS with no default: {{ simple }}. | 4 Same TS with no default: {{ simple }}. |
16 Nested translation: {{nested-ts <a href="{{nested-link http://foo.com/}}">Foo</a > and <a href="{{nested-link2 http://baz.com/}}">Baz</a>}}. | 5 Nested translation: {{nested-ts <a href="{{nested-link http://foo.com/}}">Fo o</a> and <a href="{{nested-link2 http://baz.com/}}">Baz</a>}}. |
17 Link resolving: {{linked-ts <a href="translate">This page</a>}}. | 6 Link resolving: {{linked-ts <a href="translate">This page</a>}}. |
18 Link to a non-translatable page: {{linked-ts2 <a href="sitemap">Site map</a>}}. | 7 Link to a non-translatable page: {{linked-ts2 <a href="sitemap">Site map</a> }}. |
19 Entity escaping in links: {{entity-lnk <a href="http://foo.com/?a&b">Foo</a>}}. | 8 Entity escaping in links: {{entity-lnk <a href="http://foo.com/?a&b">Foo</a> }}. |
20 Image link: <img src="img/icon"></img> | 9 Image link: <img src="img/icon"></img> |
21 Iframe link: <iframe src="/default.asp"></iframe> | 10 Iframe link: <iframe src="/default.asp"></iframe> |
22 Script link: <script src="myscripts.js"></script> | 11 Script link: <script src="myscripts.js"></script> |
23 Input link: <input type="image" src="/img/submit.gif" alt="Submit"> | 12 Input link: <input type="image" src="/img/submit.gif" alt="Submit"> |
24 Link to external source: <a href="http://bar.de/">Bar</a> | 13 Link to external source: <a href="http://bar.de/">Bar</a> |
25 Link to self: <a href="rel_path"> | 14 Link to self: <a href="rel_path"> |
26 Link to self with extension: <a href="rel_path.html"> | 15 Link to self with extension: <a href="rel_path.html"> |
27 Relative link to local page: <a href="../en/sitemap"> | 16 Relative link to local page: <a href="../en/sitemap"> |
28 Absolute link to local page: <a href="/en/sitemap"> | 17 Absolute link to local page: <a href="/en/sitemap"> |
29 Relative link to different locale: <a href="../de/sitemap"> | 18 Relative link to different locale: <a href="../de/sitemap"> |
30 Absolute link to diferent locale: <a href="/de/sitemap"> | 19 Absolute link to diferent locale: <a href="/de/sitemap"> |
31 Relative link to page in subfolder: <a href="../foo/bar"> | 20 Relative link to page in subfolder: <a href="../foo/bar"> |
32 Absolute link to page in subfolder: <a href="/foo/bar"> | 21 Absolute link to page in subfolder: <a href="/foo/bar"> |
33 Resource URL: <link rel="stylesheet" href="/dist/css/main.min.css"> | 22 Resource URL: <link rel="stylesheet" href="/dist/css/main.min.css"> |
34 </body> | 23 </body> |
35 </html> | |
LEFT | RIGHT |