sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feike Visser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SLING-6490) Sightly doesn't render valid style attribute-value
Date Fri, 27 Jan 2017 12:32:24 GMT
Feike Visser created SLING-6490:
-----------------------------------

             Summary: Sightly doesn't render valid style attribute-value
                 Key: SLING-6490
                 URL: https://issues.apache.org/jira/browse/SLING-6490
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Feike Visser


I have the following piece of Java:

{code}
public class Style {

    public String style = "background-image: url('/path/to/image.jpg');";
}
{code}

I can't get this value printed unless I use @ context = 'unsafe'
{code}
<div class="container" data-sly-use.fv="Style" style="${ fv.style @ context='styleToken'
}">
  
</div>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message