logo       

Re: smarty custom functions namespaces: msg#00017

Subject: Re: smarty custom functions namespaces
Ah, but there is a subtle albeit crucial difference. PHP started out as a template language and evolved into a general purpose scripting one. And once you are at the "general-purpose" level, you can no longer contain the explosion of possibilities. Smarty may end on the same route.

-Andrei


On Jul 21, 2005, at 10:56 AM, boots wrote:

--- Andrei Zmievski <andrei@xxxxxxxxxxxxxx> wrote:

Yes, and that's what scares me about Smarty.

-Andrei


Hi Andrei. I was kidding, you know....but I'm only half-kidding when I
ask what your take is on the famous principle that every language
eventually evolves into Lisp? More seriously, it is good to fight the
feature creep but things like namespaces really have nothing
exclusively to do with PHP or Rasmus' hypothesis.

I think your comment is insightful in that it highlights a critical
point: some people misuse Smarty and try to build business-logic with a
"template" language. It is reminiscent of how some people misuse PHP
and try to build desktop applications with a "web" languange -- despite
Rasmus' objections to such.



On Jul 21, 2005, at 9:30 AM, boots wrote:


You know full well that PHP does not have namespaces :)

--- Andrei Zmievski <andrei@xxxxxxxxxxxxxx> wrote:


Do you people realize that you are proving Rasmus's theorem with
every such thing? I am speaking of "Every template language

evolves

until it turns into PHP".

-Andrei

On Jul 21, 2005, at 3:19 AM, Michael Davey wrote:


Hi,

I've added a crude form of namespaces to my private copy of

Smarty.

A template function like:

{namespace:test}

...causes the test() function in the smarty_function_namespace
class to be called.

I'm planning to use this feature in TikiWiki to provide
accessor-like template functions to access various data:
article::title, article::description and so on.  I though that

this



might be of more general use, so here is a patch for this

morning's



CVS snapshot of Smarty.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe