I think I see where this is going...  I guess you could have a
component that plugs in raw text (the text being inline CSS code, or a
link to a calculated css) into the html, but that seems like a hack.
(Although you could do some pretty cool things like vary the color of
things over the day, like the PS3 menu)

On 6/22/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
It should be possible, there are meta-data settings on pages that
control the response content type. However, there's a couple of road
blocks in the current code base, such as the fact that there's no
outer-wrapper element for HTML (an template root element that does not
render an element into the output stream), and no way to remap the
file extension.

On 6/22/07, Jiri Mares <[EMAIL PROTECTED]> wrote:
>
> Hi ...
>
> or can I create page that is going to serve CSS instead of HTML??
>
> Jirka
>
> Howard Lewis Ship napsal(a):
> >
> > You can use expansions inside a <style> block, just as you can
> > elsewhere in an HTML template.  However, you have to eliminate the
> > HTML comments when you do so, or the expansions will not be processed:
> >
> > <style type="text/css">
> >
> >     body {
> >
> >       background-color: #2D374A;
> >
> >       background-image: url(${someBackground});
> >
> >     }
> >
> >     .MainTable {
> >
> >       background-color: #B5BFD2;
> >
> >       background-image: url(${someBackground});
> >
> >     }
> >
> >   </style>
> >
> > On 6/20/07, Bruce Petro <[EMAIL PROTECTED]> wrote:
> >> Question:  I've learned so far, to display an image ... you do something
> >> like this:
> >>
> >> SomePage.java
> >>
> >>     @Inject
> >>
> >>     @Path("./art_logo.png")
> >>
> >>       private Asset _someIcon;
> >>
> >> and then SomePage.html you do
> >>
> >> <img src="${someIcon}"/>
> >>
> >>
> >>
> >> BUT --- what's the syntax to use these in css EG: background images?
> >>
> >>
> >>
> >>     <style type="text/css">
> >>
> >>       <!--
> >>
> >>       body {
> >>
> >>         background-color: #2D374A;
> >>
> >>         background-image: url(someBackground);
> >>
> >>       }
> >>
> >>       .MainTable {
> >>
> >>         background-color: #B5BFD2;
> >>
> >>         background-image: url(someBackground);
> >>
> >>       }
> >>
> >>       -->
> >>
> >>     </style>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to