View previous topic :: View next topic |
Author |
Message |
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Apr 29, 2003 8:32 am Post subject: Roadmap |
|
|
Hi all.
Is there a roadmap of features detailing what is being worked on or being planned. Project goals for upcoming versions?
For example, I remember a passing comment on the smarty-dev mailing list concerning adding resource support to config files. True or false? |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Tue Apr 29, 2003 9:50 am Post subject: |
|
|
Perhaps http://smarty.incutio.com/?page=SmartyTODO has some of the future goals though it looks like some of those have been done _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Apr 29, 2003 11:12 am Post subject: |
|
|
Thanks. I just looked in the directory above Smarty/lib (ie. Smarty ) and lo and behold, there is a TODO there. Its updated compared to the wiki entry.
Still, kinda sparse in terms of info
This one is interesting:
UPD: change it so that if template comes from some resource,
that resource stays as the default, no need to specify it
in includes.
Isn't that almost (but not quite) like http://www.phpinsider.com/smarty-forum/viewtopic.php?t=26 ? |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Tue Apr 29, 2003 11:17 am Post subject: |
|
|
Well i think it means if you load a template from a db in that template you dont have to specify db for the rest of the includes _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Apr 29, 2003 11:43 am Post subject: |
|
|
That's what it sounds like. Sort-of like an auto cd, but for resources. The way I read _parse_file_path(), this doesn't happen yet (that's why its a todo. right.) But, it sounds like if this gets supported so can an overall default |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Tue Apr 29, 2003 11:52 am Post subject: |
|
|
I guess the most important things are
- ability to get indexes of associative arrays --> try {foreach from=$array key="index" item="value"}{/foreach}
- ability to concatenate values/strings together
- caching all but parts of the template
- make simple math easier
|
|
Back to top |
|
andre Smarty Pro
Joined: 23 Apr 2003 Posts: 164 Location: Karlsruhe, Germany
|
Posted: Tue Apr 29, 2003 12:03 pm Post subject: |
|
|
Wom.bat wrote: | [*]ability to get indexes of associative arrays --> try {foreach from=$array key="index" item="value"}{/foreach}
|
Doesn't this work already
Wom.bat wrote: | [*]ability to concatenate values/strings together
|
Is "cat" modifier + "foo`$bar`" not enough ?!
Wom.bat wrote: | [*]caching all but parts of the template
|
*hehe* Patch is ready
Wom.bat wrote: | [*]make simple math easier
[/list] |
Oh yeah. But the {math} function is easy if you know how it works Things like {$foo + 1} or {bar foo=x+y} for example would be really nice ..
Oh f**k, I think I got a virus:
_________________
Hello. I am a signature virus. Please copy me to other signatures to help me spread
|
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Apr 29, 2003 12:06 pm Post subject: |
|
|
* change plugins so $smarty variable always comes first
This one should be done sooner or later, even though it breaks BC. Probably leave it for low priority, unless a lot of custom plugins start to get developed.
* support implementations of prefiltes, mods, and others as class methods.
This I want to see! I would also like to see some sort of functionality grouping mechanism, like packages or contexts.
Also a plugable cache interface so that default cache handling can be replaced. |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Tue Apr 29, 2003 12:17 pm Post subject: |
|
|
boots: see the latest version in CVS. I am currently using object methods for pre, post, outputfilters, functions, modifiers, even cache-handlers (own cache handlign functions have ALWAYS been possible! $smarty->cache_handler_func!)
I requested this some time ago and it's now included (note: you need to use object methods, i.e. $smarty->register_prefilter("foo", array(&$obj, "foo"));, class methods don't work afaik
andre: this virus will hopefully one day rule the world
I'll have to check on the features which are, according to you, already done; would be nice check my posting in your nocache-thread on "caching but all parts of the template"... simple math yould be _great_ |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Apr 29, 2003 12:59 pm Post subject: |
|
|
Wom.bat wrote: | own cache handlign functions have ALWAYS been possible! $smarty->cache_handler_func!)
|
I thought I saw that one time or another, but when I went to look for it, I was searching for cache_class. Thanks for pointing it out.
Wom.bat wrote: | see the latest version in CVS. I am currently using object methods for pre, post, outputfilters, functions, modifiers, even cache-handlers (
[snip]
I requested this some time ago and it's now included (note: you need to use object methods, i.e. $smarty->register_prefilter("foo", array(&$obj, "foo"));, class methods don't work afaik
_great_
|
Right-on. I haven't gone through all the changes in the CVS yet, so I'm glad that you pointed this out.
I'm very happy. |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Tue Apr 29, 2003 4:50 pm Post subject: |
|
|
I was, too, when finally there was this nice sound that plays when receiving a new mail and the message I had waited for so long was there, in the folder Smarty-CVS |
|
Back to top |
|
|