Now that classic skin and pattern skin have both been moved to Contribs (SVN 7770), we can simplify the default templates. This has a number of benefits:
- Makes a much simpler example as a starting point for new skins
- Cuts down on the cruft in the release
- Protects classic skin from munging
- The default templates can be rearchitected to act as a foundation for themes
The goal is a simple CSS based skin (though it must still work without CSS) with a more up-to-date look-and-feel, and simpler presentation than classic skin.
CC
Top prio should be to get the base templates support the state of afairs in the
PatternSkin. We should
delay a revamp of the template architecture until dakar is released. So don't reach for the honey pot right now.
MD
No. Pattern skin is pattern skin; the base templates need to be a lot simpler than that (no left bar, really simple header and footer).
First step is to decouple the Pattern and CLassic skins from reliance on the base templates.
SVN 8905
Then reorganise the TMPL:DEFs so they are understandable. I added some useful debugging to Templates.pm in the process, and simplified the headers and footers a bit.
SVN 8926
CC
Outch,
SVN 8926 changed the semantics of
TMPL:INCLUDE{"sometemplate"}
: it is ok if
sometemplate.tmpl
does not
exist. This mechanism is heavily under use in the
NatSkin to componentize it as things may be overwritten by implementing
certain templates which needn't to be defined by default. Right now, the patch below cures the symptoms again:
--- lib/TWiki/Templates.pm (revision 8964)
+++ lib/TWiki/Templates.pm (working copy)
@@ -384,7 +384,6 @@
}
}
- throw Error::Simple( 'Template '.$name.' was not found' );
+ return '';
}
CC, any comments?
MD
twiki.tmpl
writes style information that is also in
css.tmpl
, but not used (?).
SVN 8971 adds a IE conditional style for scrollable pre text.
AC
form.tmpl seems to be missing
mandatory
.
SVN 897 restores
mandatory
and "change form" button style.
AC
Thanks Arthur. I removed the style info and css .tmpls (inherited from
ClassicSkin).
SVN 8977
Next stage is to eliminate some more of the redundant .tmpl files e.g. oopsleaseconflict, which should be done in oopsattention.tmpl+messages.tmpl
CC
TestUser accidentially committed in, removed. SVN 9179.
--
SP
closing as done.
--
SvenDowideit - 31 Jul 2008