[
https://issues.apache.org/jira/browse/TAP5-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672676#action_12672676
]
Howard M. Lewis Ship commented on TAP5-504:
-------------------------------------------
Very true, a t:img component with a src parameter that defaults to binding
prefix "context:" may be just as effective and less intrusive.
I like capturing these provocative ideas and the discussions in JIRA.
> Tapestry's template parser should identify <img src="..."/> and convert the
> src attribute to use a context Asset
> ----------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-504
> URL: https://issues.apache.org/jira/browse/TAP5-504
> Project: Tapestry 5
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Howard M. Lewis Ship
>
> Currently, if you have:
> <img src='/images/icon.png"/>
> you do not get the benefit of version numbering, far future expires headers,
> gzip compression, etc. To get that benefit you must:
> <img src="${context:images/icon.png}"/>
> It seems to me that Tapestry could recognize this pattern, and perhaps <input
> type="image"/> as well, and automatically supply the context binding, if the
> attribute content is simple text.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.