Slim3 JSP‎ > ‎

url

This function encodes a context-relative URL.
For example:
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<a href="${f:url('edit/xxx')}">xxx</a>

The result:
<a href="/blog/edit/1">xxx</a>

See demo and sample source.

Next...

Continue to text.


Comments