freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dániel Dékány (Jira) <j...@apache.org>
Subject [jira] [Commented] (FREEMARKER-122) SVG <use> tag unwanted output
Date Sun, 10 Nov 2019 22:16:00 GMT

    [ https://issues.apache.org/jira/browse/FREEMARKER-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971244#comment-16971244
] 

Dániel Dékány commented on FREEMARKER-122:
------------------------------------------

FreeMarker doesn't do such magic, it's done by something else. It really just outputs everything
as is, unless it's a FreeMarker tag or interpolation.

> SVG <use> tag unwanted output
> -----------------------------
>
>                 Key: FREEMARKER-122
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-122
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>         Environment: Linux Ubuntu 16.04
>            Reporter: Alessandro Candini
>            Priority: Major
>
> I'm using Liferay 7.2 CE and Inside a Web Content Template, I have the following snippet:
>  {{<svg><use xlink:href="icons.svg#star"></use></svg>}}
> and the Freemarker engine elaborates it to:
>  {{<svg><path fill="currentColor" d="M104 224H24c-13.255 0-24 ..."></path></svg>}}
> As you can see, I get the content of my SVG icon, but this is not what I want: I would
like that Freemarker will produce as output the {{<use>}} tag I've put inside my template,
not a re-elaboration of it.
> How to obtain this?
> Thank you.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message