feature request

Jeff Waugh jdub at perkypants.org
Sun Aug 19 11:58:19 EST 2007


<quote who="nelson">

> The whole idea is to have only one config file that can generate multiple
> outputs.

Consider a config file that includes this configuration:

  template_files = index.html.tmpl atom.xml.tmpl

All you need to do to generate "list.inc" as another output file is:

  template_files = index.html.tmpl atom.xml.tmpl list.inc.tmpl

Then write a template file. I quite like having a simple HTML list of posts
that I can include elsewhere as a sidebar or whatever:

  <ul>
  <TMPL_LOOP Items>
  <TMPL_IF title>
    <li>
      <a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a>
    </li>
  </TMPL_IF>
  </TMPL_LOOP>
  </ul>

- Jeff

-- 
GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008
 
      "The FFF policy: File a bug, Fix it, or F*ck off." - pwhysall on
                              gnomedesktop.org


More information about the devel mailing list