mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
7c5d7cae05
Part 2. Former-commit-id: 3ccb7c259e86c0b6e5147d372aa9cff10c1b5bb1
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<a href="{{url "my-page1"}}">http://127.0.0.1:8080/mypath</a>
|
|
<br />
|
|
<br />
|
|
|
|
<a href="{{url "my-page2" "param1" "theParam1" "param2" "theParam2"}}">http://localhost:8080/mypath2/:param1/:param2</a>
|
|
or path only:
|
|
<a href="{{urlpath "my-page2" "param1" "theParam1" "param2" "theParam2"}}">/mypath2/:param1/:param2</a>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<a href="{{url "my-page3" "param1" "theParam1" "param2" "theParam2AfterStatic"}}">
|
|
http://localhost:8080/mypath3/:param1/statichere/:param2</a>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<a href="{{url "my-page4" "param1" "theParam1" "param2" "theparam2AfterStatic" "otherparam" "otherParam" "something" "matchAnything"}}">http://localhost/mypath4/:param1/statichere/:param2/:otherparam/*something</a>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<a href="{{url "my-page5" "param1" "theParam1" "param2" "theParam2AfterStatic" "otherparam" "otherParam" "something" "matchAnythingAfterStatic"}}">
|
|
http://localhost:8080/mypath5/:param1/statichere/:param2/:otherparam/anything/*anything</a>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<a href={{url "my-page6" .ParamsAsArray }}>http://localhost:8080/mypath6/{param1}/{param2}/staticParam/{param3AfterStatic}</a>
|