Re: functions, modifier explaining themselves
| From: | Daniel BODEA | Date: | Wed, 26 Jun 2002 16:36:39 +0000 |
| Subject: | Re: functions, modifier explaining themselves | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5043@lists.php.net to get a copy of this message | ||
> I need some input on functions and modifiers explaining themselves. As I
> I hate writing documentation and I strongly appreciate all kinds of
> "self documentation". Talking on some kind of smarty plugins "self
> documentation" could mean that there's a plugin function called help
> that's able to dump (at least) the syntax of all currently registered
> functions and modifiers.
I was thinking about the same thing myself a couple of days ago. The need
for this is obvious when the gap between web designers and developers gets
to a point where it's so much simpler to have designers read the core Smarty
documentation, and then use some kind of default introspection functionality
to find out what's available to them.
The example I was thinking about is some sort of CMS that provides the
content but also gives the possibility to locally integrate foreign
templates in order to transparently "extend" clients' web sites using local
data. In this case you'd have a core team of developers and a plethora of
designers from all your clients (the many, the better). It'd be pretty
interesting to be able to say: "Go check out the official Smarty docs, then
upload your first template consisting of something like {help} or {info}
(just like phpinfo) to see the full listing of functions and modifiers
provided by our product/platform."
First of all, your developers gain direct control over the essential
documentation that comes with their code, and second, they get to control
the stupidity of the questions the clients direct to them.
My 0.02c
D