summaryrefslogtreecommitdiff
path: root/docs/tutorials/cmf/skins.rst
blob: cbc28bfb513bc6975e0fc75cb18c8d963b5dd29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.. _skins_chapter:

=====
Skins
=====

In CMF, a "skin layer" is defined as a collection of templates and
code (Python scripts, DTML methods, etc) that can be activated and
deactivated within a particular setup.  A collection of active "skin
layers" grouped in a particular order forms a "skin".  "Add-on" CMF
products often provide skin layers that are activated within a
particular skin to provide the site with additional features.

:mod:`repoze.bfg` itself has no such concept, and no package provides
a direct replacement, but bfg :term:`view` code combined with
differing :term:`request type` attributes can provide a good deal of
the same sort of behavior.  The `repoze.skins
<http://svn.repoze.org/repoze.skins/>`_ package is an attempt to allow
directories on disk to represent collections of templates, each of
which can be thought of as a minimal skin.