git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] gitweb wishlist and TODO list (templating)

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 25, 2008, 22:16 UTC
Message-ID
<200809260016.43173.jnareb@gmail.com>
In-Reply-To
<20080925171029.GQ10360@machine.or.cz>
Dnia czwartek 25. września 2008 19:10, Petr Baudis napisał:
Show 33 quoted lines
> On Thu, Sep 25, 2008 at 06:52:22PM +0200, Jakub Narebski wrote:
> >
> > I think that making gitweb use something like Gitweb::Template, where
> > action appearance is governed by templates, be it something like
> > git-for-each-ref --format or StGit *.tmpl files, or XSLT / XSL,
> > could be a good idea.  But I think _that_ would require almost writing
> > from scratch, certainly making it long-term gitweb fork, perhaps even
> > with different name (and not residing inside git.git repository).
> > 
> > We can discuss this idea here in this subthread.  For example: do
> > create Gitweb::Template like HTML::Template or use Template Toolkit;
> > which parts put in template and which in "gitweb" driver, etc.
> 
> Actually, my implementation works quite differently - the idea of the
> templates is that you just specify data from which files to show and
> whether to take them right away or tabulate them in some way - so it is
> something very abstract, and agnostic to _presentation_ layer, which is
> still provided by gitweb. An example of made-up template configuration
> file would look something like:
> 
> [action "summary"]
> 	sections = metadata overview README shortlog forks
> 
> [section "overview"]
> 	type = csv
> 	row = Project Title,(info.txt:title)
> 	row = Project Authors,(info.txt:authors)
> 	row = Bussiness Impact,(info.txt:bizimpact)
> 	row = Base Equation,[formula.png]
> 
> [section "README"]
> 	type = html
> 	content = (README.html)
Gaaaah. I think this is heavy abuse of _configuration_ mini-language
git uses (extended ini-like syntax); it can be done, but it is IMVHO
on par of writing A.I. (Artificial Intelligence) in COBOL:
  http://ars.userfriendly.org/cartoons/?id=20001018
-- 
Jakub Narebski
Poland
Previous: Petr BaudisNext: Jakub Narebski
Message 10 of 16 in “[RFC] gitweb wishlist and TODO list”
  1. Jakub NarebskiSep 25, 2008
  2. Pedro MeloSep 25, 2008
  3. Jakub NarebskiSep 25, 2008
  4. Pedro MeloSep 25, 2008
  5. Jakub NarebskiSep 25, 2008
  6. Wincent ColaiutaSep 25, 2008
  7. Petr BaudisSep 25, 2008
  8. Jakub NarebskiSep 25, 2008
  9. Petr BaudisSep 25, 2008
  10. Jakub NarebskiSep 25, 2008
  11. Jakub NarebskiSep 30, 2008
  12. Jakub NarebskiSep 25, 2008
  13. Jakub NarebskiSep 28, 2008
  14. Petr BaudisSep 28, 2008
  15. Ask Bjørn HansenOct 1, 2008
  16. Jakub NarebskiOct 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.