[Checkins] SVN: z3c.zrtresource/trunk/ eggification
Jürgen Kartnaller
juergen at kartnaller.at
Sat Sep 23 13:32:50 EDT 2006
Log message for revision 70355:
eggification
Changed:
A z3c.zrtresource/trunk/README.txt
A z3c.zrtresource/trunk/setup.cfg
A z3c.zrtresource/trunk/setup.py
U z3c.zrtresource/trunk/src/z3c/__init__.py
-=-
Added: z3c.zrtresource/trunk/README.txt
===================================================================
--- z3c.zrtresource/trunk/README.txt 2006-09-23 16:09:11 UTC (rev 70354)
+++ z3c.zrtresource/trunk/README.txt 2006-09-23 17:32:49 UTC (rev 70355)
@@ -0,0 +1,25 @@
+One of the design goals of Zope is to allow designers to check in HTML
+template, CSS and Javascript files, which just work (with some additional
+information). For HTML code we use Zope's Page Templates to accomplish this
+objective. For CSS and Javascript we did not need such a feature until now,
+since those files were largely static or variables could be inserted using
+other ways at runtime.
+
+However, in CSS URLs -- for example for background images -- are now
+frequently inserted into CSS directives. However, the path layout for the
+designer might not equal the resource file structure. This package provides a
+simple mechanism to replace strings by another.
+
+To accomplish this, a templated resource is provided. The template syntax is
+provided in a way that it does not interfere with the syntax of the
+resource. For both, Javascript and CSS, this is a comment of the form ``/*
+... */``.
+
+Here is the general syntax::
+
+ <COMMAND-BEGIN> <ZRT-COMMAND>: <COMMAND-ARGUMENTS> <COMMAND-END>
+
+Here is an example for CSS:
+
+ /* zrt-replace: ".." "@@" */
+
Property changes on: z3c.zrtresource/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: z3c.zrtresource/trunk/setup.cfg
===================================================================
--- z3c.zrtresource/trunk/setup.cfg 2006-09-23 16:09:11 UTC (rev 70354)
+++ z3c.zrtresource/trunk/setup.cfg 2006-09-23 17:32:49 UTC (rev 70355)
@@ -0,0 +1,3 @@
+[egg_info]
+tag_build = .dev
+tag_svn_revision = 1
Added: z3c.zrtresource/trunk/setup.py
===================================================================
--- z3c.zrtresource/trunk/setup.py 2006-09-23 16:09:11 UTC (rev 70354)
+++ z3c.zrtresource/trunk/setup.py 2006-09-23 17:32:49 UTC (rev 70355)
@@ -0,0 +1,19 @@
+#!python
+from setuptools import setup, find_packages
+
+setup(name='z3c.zrtresource',
+ version='0.1.0',
+ author = "Zope Community",
+ author_email = "zope3-dev at zope.org",
+ description = open("README.txt").read(),
+ license = "ZPL 2.1",
+ keywords = "css resource zope zope3",
+ url='http://svn.zope.org/z3c.zrtresource',
+
+ zip_safe=False,
+ packages=find_packages('src'),
+ include_package_data=True,
+ package_dir = {'':'src'},
+ namespace_packages=['z3c',],
+ )
+
Property changes on: z3c.zrtresource/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: z3c.zrtresource/trunk/src/z3c/__init__.py
===================================================================
--- z3c.zrtresource/trunk/src/z3c/__init__.py 2006-09-23 16:09:11 UTC (rev 70354)
+++ z3c.zrtresource/trunk/src/z3c/__init__.py 2006-09-23 17:32:49 UTC (rev 70355)
@@ -1 +1,6 @@
-# Make a package
+try:
+ # Declare this a namespace package if pkg_resources is available.
+ import pkg_resources
+ pkg_resources.declare_namespace('z3c')
+except ImportError:
+ pass
More information about the Checkins
mailing list