There sure is:

${asset:context:images/x.gif}

Mohammad Shamsi wrote:
hi all,

i want to use context path in my page template.
now i  do like this :

@Inject
Request request;

public String getContext() {
      return request.getContextPath();
}

in .tml :

<img src="${context}/images/x.gif" />


any better way ? (for example a symbol or ...)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to