juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sblackmon <sblack...@apache.org>
Subject Re: Simplifying title and description on HTML pages.
Date Mon, 10 Jul 2017 17:49:24 GMT
+1 for more flexibility in the header region.

Might it make sense to let developers put HTML with expressions in separate resource files
and specify the class path resource with an annotation field, to make the fragments easier
to re-use?

Or perhaps support Widget classes as values for header, footer, aside, etc…?

On July 10, 2017 at 12:14:21 PM, James Bognar (jamesbognar@apache.org) wrote:

There's a change I'd like to make to the way the page header is specified  
on the HTML views.  

It's rather complicated right now. The Title and Description in the header  
is added as <h1> and <h2> tags in the HtmlDocTemplateBasic class.  
The title comes from @HtmlDoc.title() or @RestResource.title() if not  
specified (or the resource bundle or swagger file)  
The description comes from @HtmlDoc.description() or  
@RestMethod.description() if not specified (or the resource bundle or  
swagger file).  

What I'd like to do is eliminate @HtmlDoc.title()/description()/branding(),  
and just add the following default value to the header() annotation on  
"<a href='http://juneau.apache.org'><img  

This simplifies the logic and I believe makes it easier to understand and  
override in subclasses.  

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message