Skip to content

Commit

Permalink
Simplified instructions and added a note on the performance penalty.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Jul 15, 2008
1 parent b9d3e29 commit a8d8022
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use to provide a replacement in your own package. Simply register a
template overrides directory and give your new template the canonical
filename.

Overrides may be registered for a specific request-layer.
Overrides may be registered for a specific layer or any layer.


Canonical filename
Expand All @@ -28,12 +28,8 @@ Example:
Registering a on overrides directory
------------------------------------

In python:

>>> from z3c.jbot.utility import getManager
>>> getManager().registerDirectory(directory)

Using ZCML:
A Zope component configuration directive is available to configure
overrides.

<include package="z3c.jbot" file="meta.zcml" />

Expand All @@ -42,6 +38,14 @@ Using ZCML:
layer="<layer>" />


Performance considerations
--------------------------

The use of jbot adds to the general page load time. On a site with
many templates this may be as much as 25 ms per request (a 9% increase
on my machine).


Author
------

Expand Down

0 comments on commit a8d8022

Please sign in to comment.