Re: ensure_starts_with issue

Daniel Dekany <[email protected]> Tue, 2 Jun 2015 23:16:16 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
ensure_starts_with should work for this too, and it's terser than what
you do. Could you show the concrete template snippet, and the
resulting output (copy-parsed from the browser source view)?


Tuesday, June 2, 2015, 6:40:59 PM, FOX427 wrote:

> for now I have added this and it works so far:
>
> <#if url?starts_with("http")>
>       ${label} <${url}>  <br>
> <#else>
>       ${label} <http://${url}>  <br>
> </#if>
>
>
>
> --
> View this message in context:
> http://freemarker.624813.n4.nabble.com/ensure-starts-with-issue-tp4655468p4655469.html
> Sent from the freemarker-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

-- 
Thanks,
 Daniel Dekany


------------------------------------------------------------------------------