[Zope3-dev] resource names
Garrett Smith
garrett@mojave-corp.com
Mon, 5 May 2003 10:50:33 -0500
Marius Gedminas wrote:
> On Sat, May 03, 2003 at 05:22:35PM -0500, Garrett Smith wrote:
>> But couldn't resources break with tradition and use the entire
>> remaining path as the resource name? E.g. I could declare a resource
>> as:=20
>>=20
>> <browser:resource
>> name=3D"img/bar.gif"
>> image=3D"www/img/bar.gif" />
>>=20
>> and reference it using "/@@/img/bar.gif".
>=20
> It is not a good idea to hardcode URLs like "/@@/foo".
Sorry, that was a typo -- meant to say "context/@@/img/bar.gif". But the
point here was to reference resources stored in a hierarchy, as in
"img/bar.gif".
In a subsequent post, I suggest that perhaps "img" could be treated as a
resource directory, rather than using names with path delimiters.
-- Garrett