[Templates] Design question

[prev] [thread] [next] [Date index for 2004/12/08]

From: Chris Ochs
Subject: [Templates] Design question
Date: 06:53 on 08 Dec 2004
I'm using the TT as the base of an ecommerce system that is
specifically for subscription membership sites.  I have a permission
system based on users and groups that is close to the standard unix
user/group system.  Basically you have a file tree of template files. 
All the files within the tree inherit the group of the their parent,
unless specifically put into their own group.  So for example I can
put a directory into a group, and all the files underneath that
directory will automatically be in that group.

Now I want to add another layer on top of this.  What I want is to
have optional views of a file based on the group it is in.  So for
example an unauthorized user (group public)  would see one version of
members.html, but a paid subscriber in the group 'members' would see a
different version.  And another user in a group 'premium_members'
could see yet another version, and so on..

One way I was thinking of is that in each directory, you would have
subdirectories for each group.  Such as _public, _members, etc..  This
would make some things simpler, but might make management more
difficult and less intuitive.  Changing the group of a file would
require moving that file, and adding/deleting groups would require
adding/deleting directories on the server.

Or, I could just name the files with a suffix or prefix that contains
the group.  For example index.html for public, members_index.html if
it belongs to the 'members' group, etc..


Also, a prerequisite is that template files can also be just plain
html files, no directives should be necessary.  One reason why I was
thinking about the above solution is that in some ways it would be a
lot easier for end users who only know html.  They can add code to the
pages if they want, but they aren't forced into using page templates
that have embedded code to accomplish the authorization.


On another note, does anyone know of open source project hosting that
supports mod perl, TT, and postgresql?

Chris

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

[Templates] Design question
Buddy Burden 18:58 on 28 Jun 2004

Re: [Templates] Design question
Jeff Anderson 19:16 on 28 Jun 2004

Re: [Templates] Design question
Mark Mills 19:16 on 28 Jun 2004

Re: [Templates] Design question
Buddy Burden 20:20 on 28 Jun 2004

RE: [Templates] Design question
Bruce McKenzie 20:46 on 28 Jun 2004

Re: [Templates] Design question
Ken.Olstad 20:55 on 28 Jun 2004

Re: [Templates] Design question
Perrin Harkins 21:25 on 28 Jun 2004

Re: [Templates] Design question
Jeff Anderson 21:47 on 28 Jun 2004

Re: [Templates] Design question
Buddy Burden 16:11 on 01 Jul 2004

Re: [Templates] Design question
Jeff Anderson 18:05 on 01 Jul 2004

Re: [Templates] Design question
Buddy Burden 22:33 on 28 Jun 2004

Re: [Templates] Design question
Perrin Harkins 22:52 on 28 Jun 2004

Re: [Templates] Design question
Buddy Burden 23:18 on 28 Jun 2004

Re: [Templates] Design question
Perrin Harkins 03:21 on 29 Jun 2004

Re: [Templates] Design question
Buddy Burden 16:22 on 29 Jun 2004

Re: [Templates] Design question
Mark Mills 17:09 on 29 Jun 2004

Re: [Templates] Design question
Buddy Burden 17:47 on 29 Jun 2004

[Templates] Design question
Chris Ochs 06:53 on 08 Dec 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52