You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Nikita Koksharov (JIRA)" <ji...@apache.org> on 2009/05/07 15:12:30 UTC

[jira] Created: (TAP5-686) Allow to use asset expressions in css files.

Allow to use asset expressions in css files.
--------------------------------------------

                 Key: TAP5-686
                 URL: https://issues.apache.org/jira/browse/TAP5-686
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.1.0.5
            Reporter: Nikita Koksharov


Tapestry not allow to use asset expressions directly in css file. 
This feature is needed to define resources in css, for example, url to image in background 
     background: url(${asset:context:images/main_content_tr.png})

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-686) Allow to use asset expressions in css files.

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799545#action_12799545 ] 

Howard M. Lewis Ship commented on TAP5-686:
-------------------------------------------

This one is a lot of work, more than you realize. There is a strong divide between static resources (such as CSS) and Tapestry components w/ templates.

What you really need is a page that generates the CSS sheet dynamically, with a text/css MIME type. This should be possible.

> Allow to use asset expressions in css files.
> --------------------------------------------
>
>                 Key: TAP5-686
>                 URL: https://issues.apache.org/jira/browse/TAP5-686
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Nikita Koksharov
>
> Tapestry not allow to use asset expressions directly in css file. 
> This feature is needed to define resources in css, for example, url to image in background 
>      background: url(${asset:context:images/main_content_tr.png})

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-686) Allow to use asset expressions in css files.

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799545#action_12799545 ] 

Howard M. Lewis Ship commented on TAP5-686:
-------------------------------------------

This one is a lot of work, more than you realize. There is a strong divide between static resources (such as CSS) and Tapestry components w/ templates.

What you really need is a page that generates the CSS sheet dynamically, with a text/css MIME type. This should be possible.

> Allow to use asset expressions in css files.
> --------------------------------------------
>
>                 Key: TAP5-686
>                 URL: https://issues.apache.org/jira/browse/TAP5-686
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Nikita Koksharov
>
> Tapestry not allow to use asset expressions directly in css file. 
> This feature is needed to define resources in css, for example, url to image in background 
>      background: url(${asset:context:images/main_content_tr.png})

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.